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

test: fix Embedd Spec #37263

Open
wants to merge 3 commits into
base: release
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ describe("Embed settings options", { tags: ["@tag.Settings"] }, function () {
)
.click()
.wait(1000);
cy.get("[data-testid='copy-application-url']").last().click();
_.agHelper.GetNClick("[data-testid='copy-application-url']");
_.agHelper.WaitUntilEleAppear(
"//span[contains(text(),'Copied application url')]",
);
_.agHelper.GiveChromeCopyPermission();

cy.window()
Expand All @@ -64,7 +67,10 @@ describe("Embed settings options", { tags: ["@tag.Settings"] }, function () {
)
.click()
.wait(1000);
_.agHelper.ClickButton("Copy application url");
_.agHelper.GetNClick("[data-testid='copy-application-url']");
_.agHelper.WaitUntilEleAppear(
"//span[contains(text(),'Copied application url')]",
);
cy.window()
.its("navigator.clipboard")
.invoke("readText")
Expand Down
2 changes: 1 addition & 1 deletion app/client/cypress/limited-tests.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# To run only limited tests - give the spec names in below format:
cypress/e2e/Regression/ClientSide/Templates/Fork_Template_spec.js
cypress/e2e/Regression/ClientSide/EmbedSettings/EmbedSettings_spec.js
# For running all specs - uncomment below:
#cypress/e2e/**/**/*

Expand Down
Loading