File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change 5252 run : yarn playground:build
5353 # - name: Run unit tests
5454 # run: yarn test:unit
55- # - name: Run integration tests
56- # run: yarn run -s test:integration
55+ - name : Run integration tests
56+ run : yarn run -s test:integration
5757 - name : Run end-to-end tests
5858 uses : cypress-io/github-action@v6
5959 with :
Original file line number Diff line number Diff line change @@ -53,16 +53,8 @@ Cypress.Commands.add('login', (path) => {
5353 cy . get ( 'input[name="password"]' ) . type ( 'Abc12345678' ) ;
5454 cy . get ( 'button[type="submit"]' ) . click ( ) ;
5555 cy . wait ( '@sessionCheck' ) . its ( 'response.statusCode' ) . should ( 'equal' , 200 ) ;
56-
57- // Sometimes the page hangs after logging in.
58- // If this happens we reload the page and log in again.
59- cy . reload ( ) ;
60- cy . get ( 'body' ) . then ( ( $b ) => {
61- if ( $b . text ( ) . includes ( 'Log in to your Strapi account' ) ) {
62- cy . login ( ) ;
63- }
64- } ) ;
6556 }
57+
6658 // Register
6759 if ( $body . text ( ) . includes ( 'Credentials are only used to authenticate in Strapi' ) ) {
6860 cy . get ( 'input[name="firstname"]' ) . type ( 'John' ) ;
You can’t perform that action at this time.
0 commit comments