@@ -13,6 +13,7 @@ export class CheckoutPage extends BasePage {
13
13
shippingAddressOptions : Locator
14
14
shippingAddressOption : Locator
15
15
16
+ billingAddressCheckbox : Locator
16
17
billingAddressInput : Locator
17
18
billingCityInput : Locator
18
19
billingCompanyInput : Locator
@@ -24,6 +25,7 @@ export class CheckoutPage extends BasePage {
24
25
shippingAddressInput : Locator
25
26
shippingCityInput : Locator
26
27
shippingCompanyInput : Locator
28
+ shippingEmailInput : Locator
27
29
shippingFirstNameInput : Locator
28
30
shippingLastNameInput : Locator
29
31
shippingPhoneInput : Locator
@@ -67,6 +69,7 @@ export class CheckoutPage extends BasePage {
67
69
cartGiftCardAmount : Locator
68
70
cartShipping : Locator
69
71
cartTaxes : Locator
72
+ cartTotal : Locator
70
73
itemsTable : Locator
71
74
itemRow : Locator
72
75
itemTitle : Locator
@@ -96,6 +99,9 @@ export class CheckoutPage extends BasePage {
96
99
this . shippingAddressOption = this . container . getByTestId (
97
100
"shipping-address-option"
98
101
)
102
+ this . billingAddressCheckbox = this . container . getByTestId (
103
+ "billing-address-checkbox"
104
+ )
99
105
this . billingAddressInput = this . container . getByTestId (
100
106
"billing-address-input"
101
107
)
@@ -118,7 +124,10 @@ export class CheckoutPage extends BasePage {
118
124
"shipping-address-input"
119
125
)
120
126
this . shippingCityInput = this . container . getByTestId ( "shipping-city-input" )
121
- this . shippingCompanyInput = this . container . getByTestId ( "shipping-company-input" )
127
+ this . shippingCompanyInput = this . container . getByTestId (
128
+ "shipping-company-input"
129
+ )
130
+ this . shippingEmailInput = this . container . getByTestId ( "shipping-email-input" )
122
131
this . shippingFirstNameInput = this . container . getByTestId (
123
132
"shipping-first-name-input"
124
133
)
@@ -158,7 +167,7 @@ export class CheckoutPage extends BasePage {
158
167
)
159
168
160
169
this . deliveryOptionRadio = this . container . getByTestId (
161
- "deliver -option-radio"
170
+ "delivery -option-radio"
162
171
)
163
172
this . deliveryOptionErrorMessage = this . container . getByTestId (
164
173
"delivery-option-error-message"
@@ -214,6 +223,7 @@ export class CheckoutPage extends BasePage {
214
223
)
215
224
this . cartShipping = this . container . getByTestId ( "cart-shipping" )
216
225
this . cartTaxes = this . container . getByTestId ( "cart-taxes" )
226
+ this . cartTotal = this . container . getByTestId ( "cart-total" )
217
227
this . itemsTable = this . container . getByTestId ( "items-table" )
218
228
this . itemRow = this . container . getByTestId ( "item-row" )
219
229
this . itemTitle = this . container . getByTestId ( "item-title" )
@@ -241,7 +251,7 @@ export class CheckoutPage extends BasePage {
241
251
( opts ) => {
242
252
const select = opts [ 0 ]
243
253
const choice = opts [ 1 ]
244
- return ( select . textContent || "" ) . includes ( choice )
254
+ return ( select . textContent || "" ) . includes ( choice )
245
255
} ,
246
256
[ selectHandle , address ] as [ ElementHandle , string ]
247
257
)
0 commit comments