forked from google/mesop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjust prettier config to match internal style guide
- Loading branch information
1 parent
43cf615
commit 0377fa8
Showing
36 changed files
with
344 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test("test", async ({ page }) => { | ||
await page.goto("/components/box/e2e/box_app"); | ||
expect(await page.getByText("hi1").textContent()).toContain("hi1"); | ||
expect(await page.getByText("hi2").textContent()).toContain("hi2"); | ||
test('test', async ({page}) => { | ||
await page.goto('/components/box/e2e/box_app'); | ||
expect(await page.getByText('hi1').textContent()).toContain('hi1'); | ||
expect(await page.getByText('hi2').textContent()).toContain('hi2'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test("test", async ({ page }) => { | ||
await page.goto("/components/text/e2e/text_app"); | ||
expect(await page.getByText("Hello, world!").textContent()).toContain( | ||
"Hello, world!", | ||
test('test', async ({page}) => { | ||
await page.goto('/components/text/e2e/text_app'); | ||
expect(await page.getByText('Hello, world!').textContent()).toContain( | ||
'Hello, world!', | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test("test", async ({ page }) => { | ||
await page.goto("/components/text_input/e2e/text_input_app"); | ||
const textOutput = await page.getByText("Text output:"); | ||
expect(textOutput).toHaveText("Text output:initial_text_state"); | ||
test('test', async ({page}) => { | ||
await page.goto('/components/text_input/e2e/text_input_app'); | ||
const textOutput = await page.getByText('Text output:'); | ||
expect(textOutput).toHaveText('Text output:initial_text_state'); | ||
|
||
// await page.getByLabel("simple-text-input").click(); | ||
await page.getByLabel("simple-text-input").fill("abcdef"); | ||
await page.locator("html").click(); | ||
await page.getByLabel('simple-text-input').fill('abcdef'); | ||
await page.locator('html').click(); | ||
// const textInput = await page.getByText("simple-text-input"); | ||
// await textInput.fill("entered_text"); | ||
// await textInput.blur(); | ||
|
||
// const progressBar = await page.getByTestId("connection-progress-bar"); | ||
// await progressBar.waitFor({ state: "hidden" }); | ||
// await new Promise((s) => setTimeout(s, 1000)); | ||
expect(textOutput).toHaveText("Text output:abcdef"); | ||
expect(textOutput).toHaveText('Text output:abcdef'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { test, expect } from "@playwright/test"; | ||
import {test, expect} from '@playwright/test'; | ||
|
||
test("test", async ({ page }) => { | ||
await page.goto("/"); | ||
expect(await page.getByText("0 clicks").textContent()).toContain("0 clicks"); | ||
test('test', async ({page}) => { | ||
await page.goto('/'); | ||
expect(await page.getByText('0 clicks').textContent()).toContain('0 clicks'); | ||
|
||
await page.getByRole("button", { name: "click me" }).click(); | ||
await page.getByRole('button', {name: 'click me'}).click(); | ||
|
||
expect(await page.getByText("1 clicks").textContent()).toContain("1 clicks"); | ||
expect(await page.getByText('1 clicks').textContent()).toContain('1 clicks'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
/** @type {import("prettier").Config} */ | ||
export default { | ||
trailingComma: "all", | ||
singleQuote: true, | ||
quoteProps: 'preserve', | ||
bracketSpacing: false, | ||
}; |
Oops, something went wrong.