11// / <reference path="./steps.d.ts" />
2- Feature ( 'GitHub' ) ;
2+ Feature ( 'GitHub' )
33
44Before ( ( { I } ) => {
5- I . amOnPage ( 'https://github.com' ) ;
6- } ) ;
5+ I . amOnPage ( 'https://github.com' )
6+ I . see ( 'GitLab' )
7+ } )
78
89xScenario ( 'test ai features' , ( { I } ) => {
9- I . amOnPage ( 'https://getbootstrap.com/docs/5.1/examples/checkout/' ) ;
10- pause ( ) ;
11- } ) ;
10+ I . amOnPage ( 'https://getbootstrap.com/docs/5.1/examples/checkout/' )
11+ } )
1212
1313Scenario ( 'Incorrect search for Codeceptjs' , ( { I } ) => {
14- I . fillField ( '.search-input' , 'CodeceptJS' ) ;
15- I . pressKey ( 'Enter' ) ;
16- I . waitForElement ( '[data-testid=search-sub-header]' , 10 ) ;
17- I . see ( 'Supercharged End 2 End Testing' ) ;
18- } ) ;
14+ I . fillField ( '.search-input' , 'CodeceptJS' )
15+ I . pressKey ( 'Enter' )
16+ I . waitForElement ( '[data-testid=search-sub-header]' , 10 )
17+ I . see ( 'Supercharged End 2 End Testing' )
18+ } )
1919
2020Scenario ( 'Visit Home Page @retry' , async ( { I } ) => {
2121 // .retry({ retries: 3, minTimeout: 1000 })
22- I . retry ( 2 ) . see ( 'GitHub' ) ;
23- I . retry ( 3 ) . see ( 'ALL' ) ;
24- I . retry ( 2 ) . see ( 'IMAGES' ) ;
25- } ) ;
22+ I . retry ( 2 ) . see ( 'GitHub' )
23+ I . retry ( 3 ) . see ( 'ALL' )
24+ I . retry ( 2 ) . see ( 'IMAGES' )
25+ } )
2626
2727Scenario ( 'search @grop' , { timeout : 6 } , ( { I } ) => {
28- I . amOnPage ( 'https://github.com/search' ) ;
28+ I . amOnPage ( 'https://github.com/search' )
2929 const a = {
3030 b : {
3131 c : 'asdasdasd' ,
3232 } ,
33- } ;
33+ }
3434 const b = {
3535 users : {
3636 admin : {
@@ -42,35 +42,38 @@ Scenario('search @grop', { timeout: 6 }, ({ I }) => {
4242 other : ( world = '' ) => `Hello ${ world } ` ,
4343 } ,
4444 urls : { } ,
45- } ;
46- I . fillField ( 'Search GitHub' , 'CodeceptJS' ) ;
45+ }
46+ I . fillField ( 'Search GitHub' , 'CodeceptJS' )
4747 // pause({ a, b });
48- I . pressKey ( 'Enter' ) ;
49- I . wait ( 3 ) ;
48+ I . pressKey ( 'Enter' )
49+ I . wait ( 3 )
5050 // pause();
51- I . see ( 'Codeception/CodeceptJS' , locate ( '.repo-list .repo-list-item' ) . first ( ) ) ;
52- } ) ;
51+ I . see ( 'Codeception/CodeceptJS' , locate ( '.repo-list .repo-list-item' ) . first ( ) )
52+ } )
5353
5454Scenario ( 'signin @sign' , { timeout : 6 } , ( { I, loginPage } ) => {
55- I . say ( 'it should not enter' ) ;
56- loginPage . login ( 'something@totest.com' , '123456' ) ;
57- I . see ( 'Incorrect username or password.' , '.flash-error' ) ;
58- } ) . tag ( 'normal' ) . tag ( 'important' ) . tag ( '@slow' ) ;
55+ I . say ( 'it should not enter' )
56+ loginPage . login ( 'something@totest.com' , '123456' )
57+ I . see ( 'Incorrect username or password.' , '.flash-error' )
58+ } )
59+ . tag ( 'normal' )
60+ . tag ( 'important' )
61+ . tag ( '@slow' )
5962
6063Scenario ( 'signin2' , { timeout : 1 } , ( { I, Smth } ) => {
61- Smth . openAndLogin ( ) ;
62- I . see ( 'Incorrect username or password.' , '.flash-error' ) ;
63- } ) ;
64+ Smth . openAndLogin ( )
65+ I . see ( 'Incorrect username or password.' , '.flash-error' )
66+ } )
6467
6568Scenario ( 'register' , ( { I } ) => {
6669 within ( '.js-signup-form' , ( ) => {
67- I . fillField ( 'user[login]' , 'User' ) ;
68- I . fillField ( 'user[email]' , 'user@user.com' ) ;
69- I . fillField ( 'user[password]' , 'user@user.com' ) ;
70- I . fillField ( 'q' , 'aaa' ) ;
71- I . click ( 'button' ) ;
72- } ) ;
73- I . see ( 'There were problems creating your account.' ) ;
74- I . click ( 'Explore' ) ;
75- I . seeInCurrentUrl ( '/explore' ) ;
76- } ) ;
70+ I . fillField ( 'user[login]' , 'User' )
71+ I . fillField ( 'user[email]' , 'user@user.com' )
72+ I . fillField ( 'user[password]' , 'user@user.com' )
73+ I . fillField ( 'q' , 'aaa' )
74+ I . click ( 'button' )
75+ } )
76+ I . see ( 'There were problems creating your account.' )
77+ I . click ( 'Explore' )
78+ I . seeInCurrentUrl ( '/explore' )
79+ } )
0 commit comments