File tree Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Expand file tree Collapse file tree 4 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1
- < div class ="header__f5sites ">
1
+ < div class ="header__f5sites " data-testid =" header__f5sites " >
2
2
{{ with index .Site.Data "f5-sites" }}
3
3
{{ $f5Sites := . }}
4
4
< div class ="navbar navbar-nav ">
Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ test.describe('Smoke test for header', () => {
44
44
} ) ;
45
45
46
46
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 ' ) ;
48
48
await f5SitesButton . click ( ) ;
49
- const f5SitesContent = await page . getByTestId ( 'header__f5sites__content ' ) ;
49
+ const f5SitesContent = await page . getByTestId ( 'header__f5sites_content ' ) ;
50
50
await expect ( f5SitesContent . count ( ) ) . toBeTruthy ( ) ;
51
51
} ) ;
52
52
} ) ;
Original file line number Diff line number Diff line change @@ -40,7 +40,6 @@ async function openPage(page, sidebarPage) {
40
40
}
41
41
42
42
test . describe ( 'Smoke test for sidebar' , ( ) => {
43
-
44
43
// Slow test
45
44
test . setTimeout ( 100_000 ) ;
46
45
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export async function runSmokeTestOnPage(page) {
13
13
// THE GDPR Consent button appears when test is run from EU locations. This handles that popup.
14
14
export async function handleConsentPopup ( page ) {
15
15
await page . addLocatorHandler (
16
- page . locator ( '#truste-consent-content' ) ,
16
+ page . locator ( '#truste-consent-content' ) ,
17
17
async ( ) => {
18
18
const consentButton = page . locator ( '#truste-consent-required' ) ;
19
19
expect ( consentButton ) . toBeVisible ( ) ;
You can’t perform that action at this time.
0 commit comments