mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-02 13:53:06 +00:00
fix(cypress) Improve flakiness of managing_secrets v1 and v2 (#13311)
This commit is contained in:
parent
d638d6f030
commit
0ce24e3199
@ -1,13 +1,15 @@
|
||||
const number = crypto.getRandomValues(new Uint32Array(1))[0];
|
||||
const accound_id = `account${number}`;
|
||||
const warehouse_id = `warehouse${number}`;
|
||||
const username = `user${number}`;
|
||||
const password = `password${number}`;
|
||||
const role = `role${number}`;
|
||||
const ingestion_source_name = `ingestion source ${number}`;
|
||||
|
||||
describe("managing secrets for ingestion creation", () => {
|
||||
beforeEach(() => {
|
||||
cy.setIsThemeV2Enabled(false);
|
||||
});
|
||||
it("create a secret, create ingestion source using a secret, remove a secret", () => {
|
||||
const number = crypto.getRandomValues(new Uint32Array(1))[0];
|
||||
const accound_id = `account${number}`;
|
||||
const warehouse_id = `warehouse${number}`;
|
||||
const username = `user${number}`;
|
||||
const role = `role${number}`;
|
||||
const ingestion_source_name = `ingestion source ${number}`;
|
||||
|
||||
// Navigate to the manage ingestion page → secrets
|
||||
cy.loginWithCredentials();
|
||||
cy.goToIngestionPage();
|
||||
@ -44,7 +46,7 @@ describe("managing secrets for ingestion creation", () => {
|
||||
cy.get("button").contains("Next").click();
|
||||
cy.waitTextVisible("Give this data source a name");
|
||||
cy.get('[data-testid="source-name-input"]').type(ingestion_source_name);
|
||||
cy.get("button").contains("Save").click();
|
||||
cy.clickOptionWithTestId("ingestion-source-save-button");
|
||||
cy.waitTextVisible("Successfully created ingestion source!").wait(5000);
|
||||
cy.waitTextVisible(ingestion_source_name);
|
||||
cy.get("button").contains("Pending...").should("be.visible");
|
||||
|
@ -1,16 +1,15 @@
|
||||
const number = Math.floor(Math.random() * 100000);
|
||||
const accound_id = `account${number}`;
|
||||
const warehouse_id = `warehouse${number}`;
|
||||
const username = `user${number}`;
|
||||
const password = `password${number}`;
|
||||
const role = `role${number}`;
|
||||
const ingestion_source_name = `ingestion source ${number}`;
|
||||
|
||||
describe("managing secrets for ingestion creation", () => {
|
||||
beforeEach(() => {
|
||||
cy.setIsThemeV2Enabled(true);
|
||||
});
|
||||
it("create a secret, create ingestion source using a secret, remove a secret", () => {
|
||||
const number = Math.floor(Math.random() * 100000);
|
||||
const accound_id = `account${number}`;
|
||||
const warehouse_id = `warehouse${number}`;
|
||||
const username = `user${number}`;
|
||||
const role = `role${number}`;
|
||||
const ingestion_source_name = `ingestion source ${number}`;
|
||||
|
||||
// Navigate to the manage ingestion page → secrets
|
||||
cy.loginWithCredentials();
|
||||
cy.skipIntroducePage();
|
||||
@ -50,7 +49,7 @@ describe("managing secrets for ingestion creation", () => {
|
||||
cy.get("button").contains("Next").click();
|
||||
cy.get(".ant-collapse-item").should("be.visible");
|
||||
cy.get('[data-testid="source-name-input"]').type(ingestion_source_name);
|
||||
cy.get("button").contains("Save").click();
|
||||
cy.clickOptionWithTestId("ingestion-source-save-button");
|
||||
cy.waitTextVisible("Successfully created ingestion source!").wait(5000);
|
||||
cy.waitTextVisible(ingestion_source_name);
|
||||
cy.get("button").contains("Pending...").should("be.visible");
|
||||
|
Loading…
x
Reference in New Issue
Block a user