@@ -21,46 +21,46 @@ describe('mobile todo app test', () => {
2121 } ) ;
2222
2323 it ( 'should show welcome screen' , async ( ) => {
24- await expect ( element ( by . text ( / c o v e r / i) ) ) . toBeVisible ( ) ;
24+ await waitFor ( element ( by . text ( / c o v e r / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
2525
26- await expect ( element ( by . text ( / o r g a n i z e y o u r / i) ) ) . toBeVisible ( ) ;
27- await expect ( element ( by . text ( / t a s k s w i t h s q l i t e / i) ) ) . toBeVisible ( ) ;
28- await expect ( element ( by . text ( / d e s i g n e d f o r h a p p i n e s s , n o t j u s t p r o d u c t i v i t y ./ i) ) ) . toBeVisible ( ) ;
29- await expect ( element ( by . text ( / e n j o y a s t r e s s - f r e e w a y t o m a n a g e y o u r d a y ./ i) ) ) . toBeVisible ( ) ;
26+ await waitFor ( element ( by . text ( / o r g a n i z e y o u r / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
27+ await waitFor ( element ( by . text ( / t a s k s w i t h s q l i t e / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
28+ await waitFor ( element ( by . text ( / d e s i g n e d f o r h a p p i n e s s , n o t j u s t p r o d u c t i v i t y ./ i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
29+ await waitFor ( element ( by . text ( / e n j o y a s t r e s s - f r e e w a y t o m a n a g e y o u r d a y ./ i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
3030
31- await expect ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) ;
31+ await waitFor ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
3232 } ) ;
3333
3434 it ( 'should get categories from chinook' , async ( ) => {
35- await expect ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) ;
35+ await waitFor ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
3636 await element ( by . text ( / g e t s t a r t e d / i) ) . tap ( ) ;
3737
38- await expect ( element ( by . text ( / i n b o x / i) ) ) . toBeVisible ( ) ;
39- await expect ( element ( by . text ( / w o r k / i) ) ) . toBeVisible ( ) ;
40- await expect ( element ( by . text ( / p e r s o n a l / i) ) ) . toBeVisible ( ) ;
38+ await waitFor ( element ( by . text ( / i n b o x / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
39+ await waitFor ( element ( by . text ( / w o r k / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
40+ await waitFor ( element ( by . text ( / p e r s o n a l / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
4141 await waitFor ( element ( by . text ( / e x p o _ c i _ d o _ n o t _ d e l e t e / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
4242 } ) ;
4343
4444 it ( 'should get tasks from chinook' , async ( ) => {
45- await expect ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) ;
45+ await waitFor ( element ( by . text ( / g e t s t a r t e d / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
4646 await element ( by . text ( / g e t s t a r t e d / i) ) . tap ( ) ;
4747
48- await expect ( element ( by . text ( / i n b o x / i) ) ) . toBeVisible ( ) ;
48+ await waitFor ( element ( by . text ( / i n b o x / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
4949 await element ( by . text ( / i n b o x / i) ) . tap ( ) ;
5050 await waitFor ( element ( by . text ( / t a s k _ w o r k / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
5151 await waitFor ( element ( by . text ( / t a s k _ p e r s o n a l / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
5252 await pressBack ( ) ;
5353
54- await expect ( element ( by . text ( / w o r k / i) ) ) . toBeVisible ( ) ;
54+ await waitFor ( element ( by . text ( / w o r k / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
5555 await element ( by . text ( / w o r k / i) ) . tap ( ) ;
5656 await waitFor ( element ( by . text ( / t a s k _ w o r k / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
5757 await pressBack ( ) ;
5858
59- await expect ( element ( by . text ( / p e r s o n a l / i) ) ) . toBeVisible ( ) ;
59+ await waitFor ( element ( by . text ( / p e r s o n a l / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
6060 await element ( by . text ( / p e r s o n a l / i) ) . tap ( ) ;
6161 await waitFor ( element ( by . text ( / t a s k _ p e r s o n a l / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
6262 await pressBack ( ) ;
6363
64- await expect ( element ( by . text ( / c a t e g o r i e s / i) ) ) . toBeVisible ( ) ;
64+ await waitFor ( element ( by . text ( / c a t e g o r i e s / i) ) ) . toBeVisible ( ) . withTimeout ( 10000 ) ;
6565 } ) ;
6666} ) ;
0 commit comments