Skip to content

Commit

Permalink
code clean up and corrected 'contain' assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeetha-nayak committed Jul 4, 2024
1 parent 12264e3 commit d25d8f2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion tests/cypress/integration/Home/ecommerce-coming-soon.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ describe(
() => {
beforeEach( () => {
wpLogin();
// uninstallPlugins();
comingSoon( true );
cy.visit( '/wp-admin/admin.php?page=' + pluginId + '#/home' );
} );
Expand Down
2 changes: 0 additions & 2 deletions tests/cypress/integration/Home/ecommerce-live.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { GetPluginId } from '../wp-module-support/pluginID.cy';
import {
wpLogin,
comingSoon,
uninstallPlugins,
} from '../wp-module-support/utils.cy';

const customCommandTimeout = 20000;
Expand All @@ -11,7 +10,6 @@ const pluginId = GetPluginId();
describe( 'e-commerce Home Page- Live Mode', { testIsolation: true }, () => {
beforeEach( () => {
wpLogin();
// uninstallPlugins();
comingSoon( false );
cy.visit( '/wp-admin/admin.php?page=' + pluginId + '#/home' );
} );
Expand Down
5 changes: 3 additions & 2 deletions tests/cypress/integration/Home/ecommerce-next-steps.cy.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { GetPluginId } from '../wp-module-support/pluginID.cy';
import {
wpLogin,
comingSoon,
viewCompletedTasks,
viewRemainingTasks,
} from '../wp-module-support/utils.cy';
Expand Down Expand Up @@ -155,7 +154,9 @@ describe( 'e-commerce Home Page- Next Steps', () => {
.scrollIntoView()
.invoke( 'removeAttr', 'target' )
.click();
cy.url().contains(
cy.url()
.should(
'contain',
'https://my.yoast.com/signup?redirect_to=https://academy.yoast.com/courses/'
);
cy.go( 'back' );
Expand Down
2 changes: 1 addition & 1 deletion tests/cypress/integration/Store/storePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ describe(
() => {
before( () => {
wpLogin();
// uninstallPlugins();
uninstallPlugins();
cy.visit( '/wp-admin/admin.php?page=' + pluginId + '#/store' );
} );

Expand Down

0 comments on commit d25d8f2

Please sign in to comment.