Skip to content

Commit

Permalink
fix: remove account type selection (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufttur authored Jan 20, 2025
1 parent cc1d6a6 commit 025b1a8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/tasks/shop-customer/Account/Register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 025b1a8

Please sign in to comment.