File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 11import { expect } from '@playwright/test' ;
22import { TIMEOUT } from './constants.js' ;
33
4- export async function runSmokeTestOnPage ( page ) {
5- /* Ensure each page follows the following dom structure */
6- await expect ( await page . getByTestId ( 'content' ) . count ( ) ) . toBeTruthy ( ) ;
7- await expect ( await page . getByTestId ( 'header' ) . count ( ) ) . toBeTruthy ( ) ;
8- await expect ( await page . getByTestId ( 'sidebar' ) . count ( ) ) . toBeTruthy ( ) ;
9- await expect ( await page . getByTestId ( 'footer' ) . count ( ) ) . toBeTruthy ( ) ;
10- await expect ( await page . getByTestId ( 'not-found-container' ) . count ( ) ) . toBe ( 0 ) ;
11- }
12-
134// THE GDPR Consent button appears when test is run from EU locations. This handles that popup.
145export async function handleConsentPopup ( page ) {
156 await page . addLocatorHandler (
You can’t perform that action at this time.
0 commit comments