Skip to content

Commit 6c121c3

Browse files
committed
test: update selectors and snapshots with new default texts
1 parent df6d741 commit 6c121c3

78 files changed

Lines changed: 172 additions & 170 deletions

File tree

Some content is hidden

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

playwright/e2e/dashboards-demo/dashboard.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ test.describe('dashboard', () => {
4141
test(example + 'empty', async ({ page, si }) => {
4242
await si.visitExample(example, undefined);
4343
await openWidgetCatalog(page);
44-
const search = page.getByPlaceholder('Search widget');
44+
const search = page.getByPlaceholder('Search');
4545
await expect(search).toBeVisible();
4646
await search.fill('empty');
4747
await expect(page.getByText('No widgets available.')).toBeVisible();

playwright/e2e/element-examples/navbar-launchpad.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ test.describe('navbar launchpad', () => {
3838
await si.visitExample(example, false);
3939

4040
await expect(page.getByText('Application Name')).toBeVisible();
41-
const toggler = page.getByLabel('Toggle navigation');
41+
const toggler = page.getByLabel('Show navigation');
4242
await toggler.click();
4343
await expect(page.getByText('Item 1')).toBeVisible();
4444

playwright/e2e/element-examples/navbar-primary.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ test.describe('navbar launchpad', () => {
2020
await page.setViewportSize({ width: 500, height: 660 });
2121
await si.visitExample(example, false);
2222

23-
await page.getByLabel('Toggle navigation').click();
23+
await page.getByLabel('Show navigation').click();
2424
await page.getByText('item 2', { exact: true }).click();
2525
await si.runVisualAndA11yTests('small-expanded');
2626
});
@@ -38,7 +38,7 @@ test.describe('navbar launchpad', () => {
3838
await page.setViewportSize({ width: 500, height: 660 });
3939
await si.visitExample(exampleEnd, false);
4040

41-
await page.getByLabel('Toggle actions').click();
41+
await page.getByLabel('Show actions').click();
4242
await page.getByRole('button', { name: 'Help' }).click();
4343
await page.waitForTimeout(400); // wait for expand-icon animation
4444
await si.runVisualAndA11yTests('small-expanded');

playwright/e2e/element-examples/si-application-header.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ test.describe('application-header', () => {
2525
test('on a small screen', async ({ page, si }) => {
2626
await si.visitExample(example);
2727
await page.setViewportSize({ width: 312, height: 660 });
28-
await page.getByLabel('Toggle navigation').click();
28+
await page.getByLabel('Show navigation').click();
2929
await page.getByText('Module 2').click();
3030
await si.runVisualAndA11yTests('mobile navigation expanded');
3131
await page.getByText('Notifications').click();
3232
await si.runVisualAndA11yTests('mobile notifications expanded');
33-
await page.getByLabel('Toggle actions').click();
33+
await page.getByLabel('Show actions').click();
3434
await page.getByText('Support').click();
3535
await si.runVisualAndA11yTests('mobile collapsible actions expanded');
3636
await page.getByRole('button', { name: 'Lars Vegas' }).click();

playwright/e2e/element-examples/si-modal-dialogs.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ test.describe('si-modal-dialogs', () => {
7474
await page.mouse.up();
7575

7676
await page.getByRole('option', { name: 'Row 8' }).press('Enter');
77-
await expect(page.getByRole('textbox', { name: 'Rename column' })).toBeFocused();
77+
await expect(page.getByRole('textbox', { name: 'Rename element' })).toBeFocused();
7878
await page.keyboard.type(' M');
7979
await page.getByRole('option', { name: 'Row 8' }).press('Enter');
8080
await page.getByRole('option', { name: 'Row 8' }).press('Space');

playwright/e2e/element-examples/si-select.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ test.describe('si-select', () => {
9999
const select = page.getByLabel('Lazy options');
100100
await expect(select).toContainText('DE - Germany');
101101
await select.click();
102-
await page.getByPlaceholder('Search...').fill('sw');
102+
await page.getByPlaceholder('Search').fill('sw');
103103
await expect(page.getByText('Switzerland')).toBeVisible();
104104
await si.runVisualAndA11yTests();
105105
await page.getByText('Switzerland').click();

playwright/e2e/element-examples/si-side-panel.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ test.describe('si-side-panel', () => {
6161
await expect(page.locator('si-side-panel.rpanel-collapsed')).toBeVisible();
6262
await si.runVisualAndA11yTests('closed');
6363

64-
await page.locator('.btn').getByText('Toggle side panel').click();
64+
await page.locator('.btn').getByText('Show side pane').click();
6565
await expect(page.locator('si-side-panel:not(.rpanel-collapsed)')).toBeVisible();
6666
await si.runVisualAndA11yTests('open');
6767
});
@@ -73,7 +73,7 @@ test.describe('si-side-panel', () => {
7373
await expect(page.locator('si-side-panel.rpanel-collapsed')).toBeVisible();
7474
await si.runVisualAndA11yTests('legacy-closed');
7575

76-
await page.locator('.btn').getByText('Toggle side panel').click();
76+
await page.locator('.btn').getByText('Show side pane').click();
7777
await expect(page.locator('si-side-panel:not(.rpanel-collapsed)')).toBeVisible();
7878
await si.runVisualAndA11yTests('legacy-open');
7979
});

playwright/snapshots/dashboard.spec.ts-snapshots/dashboard--contact-widget.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
- text: ""
4949
- menubar:
5050
- menuitem "Remove"
51-
- textbox "Search..."
51+
- textbox "Search"
5252
- list:
5353
- listitem:
5454
- text: /\d+\+/
@@ -136,4 +136,4 @@
136136
- menuitem "Remove"
137137
- heading "Lorem Ipsum Dolor Sit" [level=3]
138138
- term: Job title
139-
- definition: Software Engineer
139+
- definition: Software Engineer

playwright/snapshots/dashboard.spec.ts-snapshots/dashboard--delete-confirmation-dialog.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
- text: List Widget
4949
- menubar:
5050
- menuitem "Remove"
51-
- textbox "Search..."
51+
- textbox "Search"
5252
- list:
5353
- listitem:
5454
- text: /\d+\+/
@@ -93,4 +93,4 @@
9393
- button "Cancel"
9494
- text: Do you really want to remove the widget?
9595
- button "Cancel"
96-
- button "Remove"
96+
- button "Remove"

playwright/snapshots/dashboard.spec.ts-snapshots/dashboard--delete.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
- text: List Widget
4343
- menubar:
4444
- menuitem "Remove"
45-
- textbox "Search..."
45+
- textbox "Search"
4646
- list:
4747
- listitem:
4848
- text: /\d+\+/
@@ -81,4 +81,4 @@
8181
- listitem: /Today \d+:\d+ Title Description/
8282
- listitem: /Today \d+:\d+ Title Description/
8383
- link "Go to...":
84-
- /url: https://github.com/siemens/element/issues
84+
- /url: https://github.com/siemens/element/issues

0 commit comments

Comments
 (0)