From 93336afd3fe6d59c58752d28fa8eff9482f85788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 17:38:06 +0200 Subject: [PATCH 1/6] increase timeout? --- cypress/integration/smoke.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/smoke.spec.ts b/cypress/integration/smoke.spec.ts index ce7c17c..011511c 100644 --- a/cypress/integration/smoke.spec.ts +++ b/cypress/integration/smoke.spec.ts @@ -58,7 +58,7 @@ e2e.scenario({ e2eSelectors.ConfigEditor.ManagedSecret.input().click({ force: true }); e2eSelectors.ConfigEditor.ManagedSecret.input().type(datasource.jsonData.managedSecret.name); // wait for it to load - e2eSelectors.ConfigEditor.ManagedSecret.testID().contains(datasource.jsonData.managedSecret.name); + e2eSelectors.ConfigEditor.ManagedSecret.testID().contains(datasource.jsonData.managedSecret.name, {timeout: 10000}); e2eSelectors.ConfigEditor.ManagedSecret.input().type('{enter}'); // wait for the secret to be retrieved e2eSelectors.ConfigEditor.ClusterIDText.testID().should( From b3b3c1fa2b1d6f0b5f642efc7a95c599660503ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 17:53:55 +0200 Subject: [PATCH 2/6] drone From 6ab41cfac4364b6baa9e9866624ee230bedb80f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 18:29:57 +0200 Subject: [PATCH 3/6] Wait for region I dunno --- cypress/integration/smoke.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/integration/smoke.spec.ts b/cypress/integration/smoke.spec.ts index 011511c..3c2eac4 100644 --- a/cypress/integration/smoke.spec.ts +++ b/cypress/integration/smoke.spec.ts @@ -55,6 +55,7 @@ e2e.scenario({ .type(datasource.jsonData.defaultRegion) .type('{enter}'); e2e().get('label').contains('AWS Secrets Manager').click({ force: true }); + cy.wait(5000); e2eSelectors.ConfigEditor.ManagedSecret.input().click({ force: true }); e2eSelectors.ConfigEditor.ManagedSecret.input().type(datasource.jsonData.managedSecret.name); // wait for it to load From a4021eac20b6e26c2210fb5d3082ee627f711376 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 18:35:32 +0200 Subject: [PATCH 4/6] decrease delay --- cypress/integration/smoke.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/integration/smoke.spec.ts b/cypress/integration/smoke.spec.ts index 3c2eac4..a33da08 100644 --- a/cypress/integration/smoke.spec.ts +++ b/cypress/integration/smoke.spec.ts @@ -55,7 +55,7 @@ e2e.scenario({ .type(datasource.jsonData.defaultRegion) .type('{enter}'); e2e().get('label').contains('AWS Secrets Manager').click({ force: true }); - cy.wait(5000); + cy.wait(2000); e2eSelectors.ConfigEditor.ManagedSecret.input().click({ force: true }); e2eSelectors.ConfigEditor.ManagedSecret.input().type(datasource.jsonData.managedSecret.name); // wait for it to load From 449cb66afef28c4b5d390697edda1101ed77bc8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 18:40:33 +0200 Subject: [PATCH 5/6] Increasing the timeout :( --- cypress/integration/smoke.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cypress/integration/smoke.spec.ts b/cypress/integration/smoke.spec.ts index a33da08..128f679 100644 --- a/cypress/integration/smoke.spec.ts +++ b/cypress/integration/smoke.spec.ts @@ -55,11 +55,11 @@ e2e.scenario({ .type(datasource.jsonData.defaultRegion) .type('{enter}'); e2e().get('label').contains('AWS Secrets Manager').click({ force: true }); - cy.wait(2000); + cy.wait(5000); e2eSelectors.ConfigEditor.ManagedSecret.input().click({ force: true }); e2eSelectors.ConfigEditor.ManagedSecret.input().type(datasource.jsonData.managedSecret.name); // wait for it to load - e2eSelectors.ConfigEditor.ManagedSecret.testID().contains(datasource.jsonData.managedSecret.name, {timeout: 10000}); + e2eSelectors.ConfigEditor.ManagedSecret.testID().contains(datasource.jsonData.managedSecret.name); e2eSelectors.ConfigEditor.ManagedSecret.input().type('{enter}'); // wait for the secret to be retrieved e2eSelectors.ConfigEditor.ClusterIDText.testID().should( From 4599dec3312b817112d520371159cac3b09be6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ida=20=C5=A0tambuk?= Date: Wed, 29 May 2024 19:08:05 +0200 Subject: [PATCH 6/6] Comment --- cypress/integration/smoke.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/cypress/integration/smoke.spec.ts b/cypress/integration/smoke.spec.ts index 128f679..306530f 100644 --- a/cypress/integration/smoke.spec.ts +++ b/cypress/integration/smoke.spec.ts @@ -55,6 +55,7 @@ e2e.scenario({ .type(datasource.jsonData.defaultRegion) .type('{enter}'); e2e().get('label').contains('AWS Secrets Manager').click({ force: true }); + // wait for the region to update before selecting the ManagedSecret input (which will send a request that requires the region) cy.wait(5000); e2eSelectors.ConfigEditor.ManagedSecret.input().click({ force: true }); e2eSelectors.ConfigEditor.ManagedSecret.input().type(datasource.jsonData.managedSecret.name);