File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ const config: any = {
66 videosFolder : 'cypress/videos' ,
77 downloadsFolder : 'cypress/downloads' ,
88 baseUrl : 'https://text-compare.netlify.app' ,
9+ pageLoadTimeout : 120000 , // 2 minutes
910 setupNodeEvents ( on , cfg ) {
1011 // keep default behavior; add plugins here if needed
1112 return cfg ;
Original file line number Diff line number Diff line change @@ -4,19 +4,17 @@ describe('Text Compare App', () => {
44 const delay = 1000 ; // 1 second
55
66 beforeEach ( ( ) => {
7- cy . visit ( 'https://text-compare.netlify.app /' ) ;
7+ cy . visit ( '/' ) ;
88 cy . wait ( delay ) ; // wait 1 second before running each test
99 } ) ;
1010
1111 it ( 'should display the app name on the home page' , ( ) => {
12- cy . visit ( '#/' ) ;
1312 cy . contains ( 'Text Compare' ) ;
1413 cy . contains ( 'Netlify' ) ;
1514 cy . get ( 'h1' ) . should ( 'contain.text' , 'Text Compare' ) ;
1615 } ) ;
1716
1817 it ( 'should display two text boxes and a compare button' , ( ) => {
19- cy . visit ( '#/' ) ;
2018 cy . get ( '#editor1' ) . should ( 'be.visible' ) ;
2119 cy . get ( '#editor2' ) . should ( 'be.visible' ) ;
2220 cy . contains ( 'button' , 'Compare' ) . should ( 'be.visible' ) ;
@@ -26,7 +24,6 @@ describe('Text Compare App', () => {
2624 const left = 'Hello World' ;
2725 const right = 'Hello world' ;
2826
29- cy . visit ( '#/' ) ;
3027 cy . get ( '#editor1' ) . clear ( ) . type ( left , { delay : 200 } ) ; // 200ms between keystrokes
3128 cy . get ( '#editor2' ) . clear ( ) . type ( right , { delay : 200 } ) ;
3229
You can’t perform that action at this time.
0 commit comments