-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: NEXT-40275 - add account address creation page (#271)
- Loading branch information
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { Page, Locator } from '@playwright/test'; | ||
import type { PageObject } from '../../types/PageObject'; | ||
|
||
export class AccountAddressCreate implements PageObject { | ||
public readonly salutationDropdown: Locator; | ||
public readonly firstNameInput: Locator; | ||
public readonly lastNameInput: Locator; | ||
public readonly companyInput: Locator; | ||
public readonly departmentInput: Locator; | ||
public readonly streetInput: Locator; | ||
public readonly zipcodeInput: Locator; | ||
public readonly cityInput: Locator; | ||
public readonly countryDropdown: Locator; | ||
public readonly saveAddressButton: Locator; | ||
|
||
constructor(public readonly page: Page) { | ||
this.salutationDropdown = page.locator('#addresspersonalSalutation'); | ||
this.firstNameInput = page.locator('#addresspersonalFirstName'); | ||
this.lastNameInput = page.locator('#addresspersonalLastName'); | ||
this.companyInput = page.locator('#addresscompany'); | ||
this.departmentInput = page.locator('#addressdepartment'); | ||
this.streetInput = page.locator('#addressAddressStreet'); | ||
this.zipcodeInput = page.locator('#addressAddressZipcode'); | ||
this.cityInput = page.locator('#addressAddressCity'); | ||
this.countryDropdown = page.locator('#addressAddressCountry'); | ||
this.saveAddressButton = page.locator('.address-form-submit'); | ||
} | ||
|
||
url() { | ||
return 'account/address/create'; | ||
} | ||
} |