Skip to content

Commit 854d4b1

Browse files
committed
Fix home page sometimes not being ready
Hoping to resolve e.g. Error: Page/Frame is not ready✅ Given I am on the home page❗ Then there should be no accessibility violations detectedError: Page/Frame is not ready at assertFrameReady (/home/circleci/app/node_modules/@axe-core/webdriverio/dist/index.js:116:11)
1 parent 6c6b003 commit 854d4b1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

steps/HomePage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import {Given, Then} from "@cucumber/cucumber";
22
import {goToUrl} from "../support/util";
33
import checkNoAccessibilityViolations from "../support/a11y";
4+
import {checkTitle} from '../support/check';
45

56
Given(
67
'I am on the home page',
@@ -9,6 +10,7 @@ Given(
910
if (!baseurl) throw new Error('BASE_URL not defined in enviornment');
1011

1112
await goToUrl(baseurl + "?noredirect=");
13+
await checkTitle('Big Give');
1214
}
1315
);
1416
Then(

0 commit comments

Comments
 (0)