Skip to content

Commit

Permalink
use data attribute to target button
Browse files Browse the repository at this point in the history
Co-authored-by: Micah Wood <[email protected]>
  • Loading branch information
circlecube and wpscholar authored Feb 1, 2024
1 parent 0da48fc commit 01bd59f
Showing 1 changed file with 1 addition and 1 deletion.
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:first-child")
.find('[data-cy="view-site"]')
.should("have.text", "View your site")
.invoke("removeAttr", "target")
.click();
Expand Down

0 comments on commit 01bd59f

Please sign in to comment.