File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1
1
if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2
+ after ( ( ) => {
3
+ cy . task ( 'hmr:frontmatter:restore' )
4
+ } )
5
+
2
6
it ( 'should update frontmatter correctly' , ( ) => {
3
7
cy . visit ( '/hmr/frontmatter.html' )
4
8
cy . get ( '.e2e-theme-content #rendered-foo + p' ) . should (
Original file line number Diff line number Diff line change 1
1
if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2
+ after ( ( ) => {
3
+ cy . task ( 'hmr:title:restore' )
4
+ cy . task ( 'hmr:frontmatter:restore' )
5
+ } )
6
+
2
7
it ( 'should update title and frontmatter correctly after navigation' , ( ) => {
3
8
cy . visit ( '/hmr/title.html' )
4
9
cy . title ( ) . should ( 'include' , 'HMR Title' )
Original file line number Diff line number Diff line change 1
1
if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2
+ after ( ( ) => {
3
+ cy . task ( 'hmr:title:restore' )
4
+ } )
5
+
2
6
it ( 'should update title correctly' , ( ) => {
3
7
cy . visit ( '/hmr/title.html' )
4
8
cy . title ( ) . should ( 'include' , 'HMR Title' )
You can’t perform that action at this time.
0 commit comments