mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-07 06:13:40 +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";
|
const correct_url = "https://www.linkedin.com";
|
||||||
|
|
||||||
describe("edit documentation and link to dataset", () => {
|
describe("edit documentation and link to dataset", () => {
|
||||||
|
beforeEach(() => {
|
||||||
|
cy.window().then((win) => {
|
||||||
|
win.localStorage.setItem("isThemeV2Enabled", "false");
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
it("open test dataset page, edit documentation", () => {
|
it("open test dataset page, edit documentation", () => {
|
||||||
// edit documentation and verify changes saved
|
// edit documentation and verify changes saved
|
||||||
cy.loginWithCredentials();
|
cy.loginWithCredentials();
|
||||||
|
|||||||
@ -20,7 +20,9 @@ describe("manage ownership", () => {
|
|||||||
|
|
||||||
cy.get(
|
cy.get(
|
||||||
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
|
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
|
||||||
).click();
|
)
|
||||||
|
.first()
|
||||||
|
.click();
|
||||||
cy.clickOptionWithText("Edit");
|
cy.clickOptionWithText("Edit");
|
||||||
cy.get('[data-testid="ownership-type-description-input"]').clear(
|
cy.get('[data-testid="ownership-type-description-input"]').clear(
|
||||||
"This is an test ownership type description.",
|
"This is an test ownership type description.",
|
||||||
@ -34,7 +36,9 @@ describe("manage ownership", () => {
|
|||||||
|
|
||||||
cy.get(
|
cy.get(
|
||||||
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
|
'[data-row-key="Test Ownership Type"] > :nth-child(3) > .anticon > svg',
|
||||||
).click();
|
)
|
||||||
|
.first()
|
||||||
|
.click();
|
||||||
cy.clickOptionWithText("Delete");
|
cy.clickOptionWithText("Delete");
|
||||||
cy.get(".ant-popover-buttons > .ant-btn-primary").click();
|
cy.get(".ant-popover-buttons > .ant-btn-primary").click();
|
||||||
cy.wait(3000);
|
cy.wait(3000);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user