@@ -8,9 +8,7 @@ describe("/storybook/", () => {
88 let page ;
99 beforeAll ( async ( ) => {
1010 page = await global . BROWSER . newPage ( ) ;
11- await page . goto (
12- `${ global . ROOT } ?selectedKind=Examples&selectedStory=Wagtail%20features` ,
13- ) ;
11+ await page . goto ( `${ global . ROOT } ?id=tests--integration` ) ;
1412
1513 await page . addScriptTag ( { path : require . resolve ( "axe-core" ) } ) ;
1614 } ) ;
@@ -62,7 +60,7 @@ describe("/storybook/", () => {
6260 await page . keyboard . press ( "ArrowRight" ) ;
6361 await page . waitFor ( 100 ) ;
6462 const content = await page . evaluate ( ( ) =>
65- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
63+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
6664 ) ;
6765 content . blocks . forEach ( ( b ) => delete b . key ) ;
6866 expect ( content . blocks ) . toMatchSnapshot ( ) ;
@@ -72,7 +70,7 @@ describe("/storybook/", () => {
7270 await page . type ( '[role="textbox"]' , "### H3" ) ;
7371 await page . waitFor ( 100 ) ;
7472 const content = await page . evaluate ( ( ) =>
75- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
73+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
7674 ) ;
7775 content . blocks . forEach ( ( b ) => delete b . key ) ;
7876 expect ( content . blocks ) . toMatchSnapshot ( ) ;
@@ -82,7 +80,7 @@ describe("/storybook/", () => {
8280 await page . type ( '[role="textbox"]' , "* UL" ) ;
8381 await page . waitFor ( 100 ) ;
8482 const content = await page . evaluate ( ( ) =>
85- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
83+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
8684 ) ;
8785 content . blocks . forEach ( ( b ) => delete b . key ) ;
8886 expect ( content . blocks ) . toMatchSnapshot ( ) ;
@@ -92,7 +90,7 @@ describe("/storybook/", () => {
9290 await page . type ( '[role="textbox"]' , "---" ) ;
9391 await page . waitFor ( 100 ) ;
9492 const content = await page . evaluate ( ( ) =>
95- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
93+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
9694 ) ;
9795 content . blocks . forEach ( ( b ) => delete b . key ) ;
9896 expect ( content ) . toMatchSnapshot ( ) ;
@@ -107,7 +105,7 @@ describe("/storybook/", () => {
107105 await page . type ( '[role="textbox"]' , "lo" ) ;
108106 await page . waitFor ( 100 ) ;
109107 const content = await page . evaluate ( ( ) =>
110- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
108+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
111109 ) ;
112110 content . blocks . forEach ( ( b ) => delete b . key ) ;
113111 expect ( content ) . toMatchSnapshot ( ) ;
@@ -119,7 +117,7 @@ describe("/storybook/", () => {
119117 await page . keyboard . press ( "Enter" ) ;
120118 await page . waitFor ( 100 ) ;
121119 const content = await page . evaluate ( ( ) =>
122- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
120+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
123121 ) ;
124122 content . blocks . forEach ( ( b ) => delete b . key ) ;
125123 expect ( content ) . toMatchSnapshot ( ) ;
@@ -137,7 +135,7 @@ describe("/storybook/", () => {
137135 await page . keyboard . press ( "Enter" ) ;
138136 await page . waitFor ( 100 ) ;
139137 const content = await page . evaluate ( ( ) =>
140- JSON . parse ( window . sessionStorage . getItem ( "wagtail :content" ) ) ,
138+ JSON . parse ( window . sessionStorage . getItem ( "integration :content" ) ) ,
141139 ) ;
142140 content . blocks . forEach ( ( b ) => delete b . key ) ;
143141 expect ( content ) . toMatchSnapshot ( ) ;
0 commit comments