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 11if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2+ after ( ( ) => {
3+ cy . task ( 'hmr:frontmatter:restore' )
4+ } )
5+
26 it ( 'should update frontmatter correctly' , ( ) => {
37 cy . visit ( '/hmr/frontmatter.html' )
48 cy . get ( '.e2e-theme-content #rendered-foo + p' ) . should (
Original file line number Diff line number Diff line change 11if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2+ after ( ( ) => {
3+ cy . task ( 'hmr:title:restore' )
4+ cy . task ( 'hmr:frontmatter:restore' )
5+ } )
6+
27 it ( 'should update title and frontmatter correctly after navigation' , ( ) => {
38 cy . visit ( '/hmr/title.html' )
49 cy . title ( ) . should ( 'include' , 'HMR Title' )
Original file line number Diff line number Diff line change 11if ( Cypress . env ( 'E2E_COMMAND' ) === 'dev' ) {
2+ after ( ( ) => {
3+ cy . task ( 'hmr:title:restore' )
4+ } )
5+
26 it ( 'should update title correctly' , ( ) => {
37 cy . visit ( '/hmr/title.html' )
48 cy . title ( ) . should ( 'include' , 'HMR Title' )
You can’t perform that action at this time.
0 commit comments