ci(cypress): fix Cypress flakes (#14295)

This commit is contained in:
Ben Blazke 2025-07-31 17:14:02 -07:00 committed by GitHub
parent 187de9e965
commit 1d044bb822
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 2 deletions

View File

@ -4,6 +4,12 @@ const wrong_url = "https://www.linkedincom";
const correct_url = "https://www.linkedin.com";
describe("edit documentation and link to dataset", () => {
beforeEach(() => {
cy.window().then((win) => {
win.localStorage.setItem("isThemeV2Enabled", "false");
});
});
it("open test dataset page, edit documentation", () => {
// edit documentation and verify changes saved
cy.loginWithCredentials();

View File

@ -20,7 +20,9 @@ describe("manage ownership", () => {
cy.get(
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
).click();
)
.first()
.click();
cy.clickOptionWithText("Edit");
cy.get('[data-testid="ownership-type-description-input"]').clear(
"This is an test ownership type description.",
@ -34,7 +36,9 @@ describe("manage ownership", () => {
cy.get(
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
).click();
)
.first()
.click();
cy.clickOptionWithText("Delete");
cy.get(".ant-popover-buttons > .ant-btn-primary").click();
cy.wait(3000);