Skip to content

Commit

Permalink
Merge pull request #207 from newfold-labs/fix/home-commerce-home-page…
Browse files Browse the repository at this point in the history
…-test

Fix failing test
  • Loading branch information
ramyakrishnai authored Feb 2, 2024
2 parents d7b1f0e + 01bd59f commit a1720e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/components/OnboardingScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export function OnboardingScreen({
href={NewfoldRuntime.siteDetails.url}
target="_blank"
variant="secondary"
data-cy="view-site"
>
{__("View your site", "wp-module-ecommerce")}
</Button>
Expand All @@ -160,6 +161,7 @@ export function OnboardingScreen({
href={RuntimeSdk.adminUrl('site-editor.php?postType=wp_template&postId='+NewfoldRuntime.currentTheme+'//home')}
target="_blank"
variant="secondary"
data-cy="edit-site"
>
{__("Edit your site", "wp-module-ecommerce")}
</Button>
Expand Down
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 @@ -46,7 +46,7 @@ describe("Commerce Home Page- Coming soon mode", () => {
.should("exist");
cy.get("@sitePreviewFlex")
.trigger("mouseover")
.find("a.nfd-button")
.find('[data-cy="view-site"]')
.should("have.text", "View your site")
.invoke("removeAttr", "target")
.click();
Expand Down

0 comments on commit a1720e8

Please sign in to comment.