mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
ci(cypress): fix Cypress flakes (#14295)
This commit is contained in:
parent
187de9e965
commit
1d044bb822
@ -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();
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user