Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing tests from home and store page. #209

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading