Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/fix/home-commerce-home-page-test…
Browse files Browse the repository at this point in the history
…' into release-1.3.21
  • Loading branch information
ramyakrishnai committed Feb 2, 2024
2 parents f3f4d42 + 01bd59f commit 9f05746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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
4 changes: 2 additions & 2 deletions tests/cypress/integration/Home/commerceHomePage.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe("Commerce Home Page- Coming soon mode", () => {
.should("exist");
cy.get("@sitePreviewFlex")
.trigger("mouseover")
.find("a.nfd-button")
.eq(0)
.find('[data-cy="view-site"]')
.should("have.text", "View your site")
.invoke("removeAttr", "target")
.click();
cy.url().should("eq", Cypress.config().baseUrl + "/");
Expand Down

0 comments on commit 9f05746

Please sign in to comment.