From 63b161b104d1febff44adae90323c44a63e8029d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yusuf=20=20T=C3=BCr?= Date: Mon, 20 Jan 2025 08:32:34 +0100 Subject: [PATCH] fix: remove account type selection --- src/tasks/shop-customer/Account/Register.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tasks/shop-customer/Account/Register.ts b/src/tasks/shop-customer/Account/Register.ts index b491dcb..dfaba2c 100644 --- a/src/tasks/shop-customer/Account/Register.ts +++ b/src/tasks/shop-customer/Account/Register.ts @@ -37,17 +37,17 @@ export const Register = base.extend<{ Register: Task }, FixtureTypes>({ registeredEmail = registrationData.email; - // Deprecation warning for the 'isCommercial' argument - if (registrationData.isCommercial || isCommercial) { - await StorefrontAccountLogin.accountTypeSelect.selectOption('Commercial'); + await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation); + await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName); + await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName); + + // Deprecation warning for the 'isCommercial' argument + if (registrationData.isCommercial || isCommercial) { await StorefrontAccountLogin.companyInput.fill(registrationData.company); await StorefrontAccountLogin.departmentInput.fill(registrationData.department); await StorefrontAccountLogin.vatRegNoInput.fill(registrationData.vatRegNo); } - await StorefrontAccountLogin.salutationSelect.selectOption(registrationData.salutation); - await StorefrontAccountLogin.firstNameInput.fill(registrationData.firstName); - await StorefrontAccountLogin.lastNameInput.fill(registrationData.lastName); await StorefrontAccountLogin.registerEmailInput.fill(registrationData.email); if (!registrationData.isGuest) {