@@ -4,14 +4,14 @@ describe('Reloading files', function() {
44 cy . visit ( Cypress . env ( 'BS_URL' ) ) ;
55 } ) ;
66 it ( 'should reload single <link>' , function ( ) {
7- cy . exec ( 'touch test/fixtures/**/style.css' ) ;
7+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/**/style.css' ) ;
88 cy . get ( '[id="css-style"]' ) . should ( $link => {
99 const url = new URL ( $link . attr ( 'href' ) ) ;
1010 expect ( url . search ) . to . contain ( '?browsersync=' ) ;
1111 } ) ;
1212 } ) ;
1313 it ( 'should reload 2 css files' , function ( ) {
14- cy . exec ( 'touch test/fixtures/**/*.css' ) ;
14+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/**/*.css' ) ;
1515 cy . get ( 'link' ) . should ( $links => {
1616 $links . each ( ( i , elem ) => {
1717 const url = new URL ( elem . href ) ;
@@ -57,7 +57,7 @@ describe('Reloading files', function() {
5757 const href = firstStyle . sheet . cssRules [ 0 ] . href ;
5858 expect ( href ) . to . not . contain ( '?browsersync=' ) ;
5959 } ) ;
60- cy . exec ( 'touch test/fixtures/assets/import.css' ) ;
60+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/assets/import.css' ) ;
6161 cy . get ( 'style' ) . eq ( 0 ) . should ( ( style ) => {
6262 const href = style [ 0 ] . sheet . cssRules [ 0 ] . href ;
6363 expect ( href ) . to . contain ( '?browsersync=' ) ;
@@ -69,7 +69,7 @@ describe('Reloading files', function() {
6969 const href = doc . styleSheets [ 0 ] . cssRules [ 0 ] . href ;
7070 expect ( href ) . to . not . contain ( '?browsersync=' ) ;
7171 } ) ;
72- cy . exec ( 'touch test/fixtures/assets/import2.css' ) ;
72+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/assets/import2.css' ) ;
7373 cy . get ( 'link' ) . eq ( 0 ) . should ( ( link ) => {
7474 const href = link [ 0 ] . sheet . cssRules [ 0 ] . href ;
7575 expect ( href ) . to . contain ( '?browsersync=' ) ;
@@ -81,7 +81,7 @@ describe('Reloading files', function() {
8181 cy . visit ( Cypress . env ( 'BS_URL' ) + '/images.html' ) ;
8282 } ) ;
8383 it ( 'should reload single <img src>' , function ( ) {
84- cy . exec ( 'touch test/fixtures/**/cam-secure.png' ) ;
84+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/**/cam-secure.png' ) ;
8585 cy . get ( '[id="img-src-attr"]' ) . should ( $link => {
8686 const url = new URL ( $link . attr ( 'src' ) ) ;
8787 expect ( url . search ) . to . contain ( '?browsersync=' ) ;
@@ -93,7 +93,7 @@ describe('Reloading files', function() {
9393 } ) ;
9494 } ) ;
9595 it ( 'should reload single style backgroundImage style property' , function ( ) {
96- cy . exec ( 'touch test/fixtures/**/cam-secure-02.png' ) ;
96+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/**/cam-secure-02.png' ) ;
9797 cy . get ( '[id="img-src-attr"]' ) . should ( $link => {
9898 expect ( $link . attr ( 'src' ) ) . not . to . contain ( '?browsersync=' ) ;
9999 } ) ;
@@ -104,7 +104,7 @@ describe('Reloading files', function() {
104104 } ) ;
105105 } ) ;
106106 it ( 'should reload both images' , function ( ) {
107- cy . exec ( 'touch test/fixtures/**/*.png' ) ;
107+ cy . exec ( 'touch packages/browser-sync/ test/fixtures/**/*.png' ) ;
108108 cy . get ( '[id="img-src-attr"]' ) . should ( $link => {
109109 const url = new URL ( $link . attr ( 'src' ) ) ;
110110 expect ( url . search ) . to . contain ( '?browsersync=' ) ;
0 commit comments