Skip to content

Commit b54c51f

Browse files
committed
Fix test
1 parent 5d7fa10 commit b54c51f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

webapp/tests/end2end-puppeteer/TestTutorial1.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ describe('Tutorial #1', () => {
7575
await page.click('.modal-open')
7676

7777

78-
await page.waitForSelector('div > .Topbar-topbar-6 > .SwitchPageButton-container-7 button')
78+
await page.waitForSelector('div > .Topbar-topbar-6 .SwitchPageButton-container-7 button')
7979
await page.waitFor(1000);
80-
await page.click('div > .Topbar-topbar-6 > .SwitchPageButton-container-7 button')
80+
await page.click('div > .Topbar-topbar-6 .SwitchPageButton-container-7 button')
8181

82-
await page.waitForSelector('.MuiList-root > .MuiButtonBase-root:nth-child(12) > .MuiListItemIcon-root > .material-icons > .image-icon')
82+
await page.waitForSelector('.MuiList-root > .MuiButtonBase-root:nth-child(11) > .MuiListItemIcon-root > .material-icons > .image-icon')
8383
await page.waitFor(1000);
84-
await page.click('.MuiList-root > .MuiButtonBase-root:nth-child(12) > .MuiListItemIcon-root > .material-icons > .image-icon')
84+
await page.click('.MuiList-root > .MuiButtonBase-root:nth-child(11) > .MuiListItemIcon-root > .material-icons > .image-icon')
8585

8686
await browser.close()
8787
expect(1).toBe(1);

0 commit comments

Comments
 (0)