Skip to content

Commit da887f4

Browse files
committed
Tests: Fix tests + biome
1 parent 663970f commit da887f4

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

layouts/partials/f5-sites.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<div class="header__f5sites">
1+
<div class="header__f5sites" data-testid="header__f5sites">
22
{{ with index .Site.Data "f5-sites" }}
33
{{ $f5Sites := . }}
44
<div class="navbar navbar-nav">

tests/src/header.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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 = await page.getByTestId('header__f5sites_button');
4848
await f5SitesButton.click();
49-
const f5SitesContent = await page.getByTestId('header__f5sites__content');
49+
const f5SitesContent = await page.getByTestId('header__f5sites_content');
5050
await expect(f5SitesContent.count()).toBeTruthy();
5151
});
5252
});

tests/src/sidebar.spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ async function openPage(page, sidebarPage) {
4040
}
4141

4242
test.describe('Smoke test for sidebar', () => {
43-
4443
// Slow test
4544
test.setTimeout(100_000);
4645

tests/src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export async function runSmokeTestOnPage(page) {
1313
// THE GDPR Consent button appears when test is run from EU locations. This handles that popup.
1414
export async function handleConsentPopup(page) {
1515
await page.addLocatorHandler(
16-
page.locator('#truste-consent-content'),
16+
page.locator('#truste-consent-content'),
1717
async () => {
1818
const consentButton = page.locator('#truste-consent-required');
1919
expect(consentButton).toBeVisible();

0 commit comments

Comments
 (0)