Skip to content

Commit 1a4f7b0

Browse files
committed
Tests: Fixed header tests
1 parent 11c2f35 commit 1a4f7b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/src/header.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ test.describe('Smoke test for header', () => {
1818
});
1919

2020
test('header control works', async ({ page }) => {
21-
const sidebarButtonClose = await page.getByTestId(
21+
const sidebarButtonClose = page.getByTestId(
2222
'header__control--sidebar--close'
2323
);
24-
const sidebarButtonOpen = await page.getByTestId(
24+
const sidebarButtonOpen = page.getByTestId(
2525
'header__control--sidebar--open'
2626
);
27-
const sidebar = await page.getByTestId('sidebar');
27+
const sidebar = page.getByTestId('sidebar');
2828

2929
// Close the sidebar
3030
await expect(sidebarButtonClose).toBeVisible();
@@ -44,9 +44,9 @@ test.describe('Smoke test for header', () => {
4444
});
4545

4646
test('F5 Sites button works', async ({ page }) => {
47-
const f5SitesButton = await page.getByTestId('header__f5sites_button');
47+
const f5SitesButton = page.getByTestId('header__f5sites_button');
4848
await f5SitesButton.click();
49-
const f5SitesContent = await page.getByTestId('header__f5sites_content');
49+
const f5SitesContent = page.getByTestId('header__f5sites_content');
5050
await expect(f5SitesContent.count()).toBeTruthy();
5151
});
5252
});

0 commit comments

Comments
 (0)