Skip to content

Commit

Permalink
fix(e2e-tests): fixed an issue that would mix up device installed sof…
Browse files Browse the repository at this point in the history
…tware from different areas of the ui

Ticket: None
Changelog: None
Signed-off-by: Manuel Zedel <[email protected]>
  • Loading branch information
mzedel committed Aug 18, 2023
1 parent d6d1508 commit c2cc22e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e_tests/integration/05-deviceDetails.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ test.describe('Device details', () => {
const searchField = await page.getByPlaceholder(/search devices/i);
await searchField.fill(demoDeviceName);
await page.waitForSelector('.deviceListItem');
expect(await page.locator(`:text("${demoDeviceName}"):below(:text("clear search"))`).isVisible()).toBeTruthy();
expect(await page.getByText('1-1 of 1').isVisible()).toBeTruthy();
const slideOut = await page.locator('.MuiPaper-root');
expect(await slideOut.locator(`:text("${demoDeviceName}"):below(:text("clear search"))`).isVisible()).toBeTruthy();
expect(await slideOut.getByText('1-1 of 1').isVisible()).toBeTruthy();
await page.click(`.deviceListItem`);
await page.waitForSelector('text=/device information/i');
expect(await page.getByText(/Authorization sets/i).isVisible()).toBeTruthy();
Expand Down

0 comments on commit c2cc22e

Please sign in to comment.