From 4195a4f8187155ee7960955396e1779222a1cbbe Mon Sep 17 00:00:00 2001 From: Alejandro Bailo <59607668+alejandrobailo@users.noreply.github.com> Date: Mon, 28 Sep 2026 15:38:47 +0200 Subject: [PATCH] test(ui): add AWS provider in one step in the E2E helper (#12895) --- ui/tests/helpers.ts | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/ui/tests/helpers.ts b/ui/tests/helpers.ts index 6bb4f2a068..45d0195142 100644 --- a/ui/tests/helpers.ts +++ b/ui/tests/helpers.ts @@ -107,17 +107,12 @@ export async function addAWSProvider( // Select AWS provider await providersPage.selectAWSProvider(); - // Fill provider details - await providersPage.fillAWSProviderDetails(awsProviderData); - await providersPage.clickNext(); - - // Verify credentials page is loaded - await providersPage.verifyCredentialsPageLoaded(); - - // Select static credentials type - await providersPage.selectCredentialsType( + // AWS registers the account and its credentials in a single step + await providersPage.selectAwsAccessMethod( AWS_CREDENTIAL_OPTIONS.AWS_CREDENTIALS, ); + await providersPage.fillAWSProviderDetails(awsProviderData); + // Fill static credentials await providersPage.fillStaticCredentials(staticCredentials); await providersPage.clickNext();