Skip to content

Commit 4d11d3b

Browse files
authored
Merge branch 'main' into main
2 parents 473dd54 + d7b7ee7 commit 4d11d3b

File tree

138 files changed

+2413
-1321
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

138 files changed

+2413
-1321
lines changed

playwright/hover-card.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test("test", async ({ page }) => {
44
await page.goto("http://127.0.0.1:8080/component/?name=hover_card&");
55
let tooltip = page.getByRole("tooltip");
66
// tabbing to the trigger element should show the tooltip
7-
await page.getByRole("heading", { name: "hover card" }).click();
7+
await page.locator("#component-preview-frame").focus();
88
await page.keyboard.press("Tab");
99
await expect(tooltip).toBeVisible();
1010
// tabbing out of the trigger element should hide the tooltip

playwright/popover.spec.ts

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
1-
import { test, expect } from '@playwright/test';
1+
import { test, expect } from "@playwright/test";
22

3-
test('test', async ({ page }) => {
4-
await page.goto('http://127.0.0.1:8080/component/?name=popover&');
5-
const popoverButton = page.getByRole('button', { name: 'Show Popover' });
3+
test("test", async ({ page }) => {
4+
await page.goto("http://127.0.0.1:8080/component/?name=popover&");
5+
const popoverButton = page.getByRole("button", { name: "Show Popover" });
66
await expect(popoverButton).toBeVisible();
77
await popoverButton.click();
88
// pressing the first input should be focused
9-
const confirm = page.getByRole('button', { name: 'Confirm' });
10-
const cancel = page.getByRole('button', { name: 'Cancel' });
9+
const confirm = page.getByRole("button", { name: "Confirm" });
10+
const cancel = page.getByRole("button", { name: "Cancel" });
1111
await expect(confirm).toBeFocused();
1212
// pressing tab again should focus the cancel button
13-
await page.keyboard.press('Tab');
13+
await page.keyboard.press("Tab");
1414
await expect(cancel).toBeFocused();
1515
// pressing tab again should focus the confirm button again
16-
await page.keyboard.press('Tab');
16+
await page.keyboard.press("Tab");
1717
await expect(confirm).toBeFocused();
1818
// pressing enter should close the popover
19-
await page.keyboard.press('Enter');
19+
await page.keyboard.press("Enter");
2020
// the item should show deleted under component-preview-frame
21-
await expect(page.locator('.component-preview-frame')).toContainText('Item deleted!');
21+
await expect(page.locator("#component-preview-frame")).toContainText(
22+
"Item deleted!",
23+
);
2224

2325
// Open the popover again
2426
await popoverButton.click();
2527
// pressing escape should close the popover
26-
await page.keyboard.press('Escape');
27-
});
28+
await page.keyboard.press("Escape");
29+
});

playwright/tabs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { test, expect } from "@playwright/test";
33
test("test", async ({ page }) => {
44
await page.goto("http://127.0.0.1:8080/component/?name=tabs&");
55
let activeTab = page.locator(
6-
".component-preview-frame > .tabs > .tabs-content[data-state='active']"
6+
"#component-preview-frame > .tabs > .tabs-content[data-state='active']",
77
);
88
let tab1Button = page.getByRole("tab", { name: "Tab 1" });
99
let tab2Button = page.getByRole("tab", { name: "Tab 2" });

playwright/toolbar.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test("test", async ({ page }) => {
88
let alignLeft = page.getByRole("button", { name: "Align Left" });
99
let alignCenter = page.getByRole("button", { name: "Align Center" });
1010
let alignRight = page.getByRole("button", { name: "Align Right" });
11-
await page.getByRole("heading", { name: "Toolbar" }).click();
11+
await page.locator("#component-preview-frame").focus();
1212
// Tabbing to the first button should focus it
1313
await page.keyboard.press("Tab");
1414
await expect(bold).toBeFocused();

playwright/tooltip.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test("test", async ({ page }) => {
44
await page.goto("http://127.0.0.1:8080/component/?name=tooltip&");
55
let tooltip = page.getByRole("tooltip");
66
// tabbing to the trigger element should show the tooltip
7-
await page.getByRole("heading", { name: "tooltip" }).click();
7+
await page.locator("#component-preview-frame").focus();
88
await page.keyboard.press("Tab");
99
await expect(tooltip).toBeVisible();
1010
// tabbing out of the trigger element should hide the tooltip

0 commit comments

Comments
 (0)