Skip to content

Commit

Permalink
Fix failing tests from after press4-455 dev changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sangeetha-nayak committed Feb 2, 2024
1 parent d7b1f0e commit b8e2b98
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/cypress/integration/Home/commerceHomePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe("Commerce Home Page- Coming soon mode", () => {
cy.get("@sitePreviewFlex")
.trigger("mouseover")
.find("a.nfd-button")
.should("have.text", "View your site")
.eq(0)
.invoke("removeAttr", "target")
.click();
cy.url().should("eq", Cypress.config().baseUrl + "/");
Expand Down
6 changes: 4 additions & 2 deletions tests/cypress/integration/Store/storePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { comingSoon } from '../wp-module-support/utils.cy';

const pluginId = GetPluginId();
const appId = getAppId();
const customCommandTimeout = 30000;

describe( 'Store Page- WooCommerce is deactivated/uninstalled', () => {
before(() => {
Expand All @@ -20,8 +21,9 @@ describe( 'Store Page- WooCommerce is deactivated/uninstalled', () => {
it( 'Verify that Payments tab is not displayed', () => {
const subNavTexts = ['Products & Services', 'Store Details'];
const subNavTextsOther = [ 'Products', 'Store Details' ];

cy.contains( '.nfd-mb-0', 'Store' )

cy.reload()
cy.contains( '.nfd-mb-0', 'Store' , { timeout: customCommandTimeout })
.find( `.${ appId }-app-subnavitem` )
.each( ( item, index, list ) => {
expect(list).to.have.length(2);
Expand Down

0 comments on commit b8e2b98

Please sign in to comment.