File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ Feature : Read the homepage
2+
3+ As someone interested in understand Big Give, I should be able to read the homepage.
4+
5+ Scenario : Reading the homepage
6+ Given that I am on my chosen charity's Donate page
7+ Then there should be no accessibility violations detected
8+
Original file line number Diff line number Diff line change 1+ import { Given , Then } from "@cucumber/cucumber" ;
2+ import { goToUrl } from "../support/util" ;
3+ import checkNoAccessibilityViolations from "../support/a11y" ;
4+
5+ Given (
6+ / ^ t h a t I a m o n m y t h e h o m e p a g e p a g e $ / ,
7+ async ( ) => {
8+ const baseurl = process . env . BASE_URL ;
9+ if ( ! baseurl ) throw new Error ( 'BASE_URL not defined in enviornment' ) ;
10+
11+ await goToUrl ( baseurl ) ;
12+ }
13+ ) ;
14+ Then (
15+ / ^ t h e r e s h o u l d b e n o a c c e s s i b i l i t y v i o l a t i o n s d e t e c t e d $ / ,
16+ async function ( ) {
17+ await checkNoAccessibilityViolations ( ) ;
18+ } ) ;
You can’t perform that action at this time.
0 commit comments