Skip to content

Commit 44c3188

Browse files
committed
small change
1 parent 4e8b0c1 commit 44c3188

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pages/checkoutPage/CheckoutReviewAndPaymentPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class CheckoutReviewAndPaymentPage extends LumaMainPage {
1717
public async validateBillingAndShippingDetails(billingShippingDetails: string[]) {
1818
const shippingDetailsInnerText = await this.getInnerText(this.billingAddressDetailsLocator);
1919
const shippingDetailsList = shippingDetailsInnerText.split('\n')
20-
shippingDetailsList.splice(shippingDetailsList.indexOf('edit'), 5);
20+
shippingDetailsList.splice(shippingDetailsList.indexOf('edit'), 1);
2121
expect(shippingDetailsList).toEqual(billingShippingDetails);
2222
}
2323

pages/pageComponents/productShoppingComponent/ItemShoppingPage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class ItemShoppingComponentPage extends BasePage {
2424
* in the test
2525
*/
2626
public async chooseProductItem(productName: string, options?: ProductItemOptionalParamsInterface) {
27-
const productItem = await this.getProductItemScopeLocator(productName);
27+
const productItem = await this.getProductItemLocator(productName);
2828
await this.hover(productItem);
2929
try {
3030
if (options?.chooseSize && options.size !== undefined) {
@@ -81,7 +81,7 @@ export class ItemShoppingComponentPage extends BasePage {
8181
* @param itemText
8282
* @returns
8383
*/
84-
private async getProductItemScopeLocator(itemText: string) {
84+
private async getProductItemLocator(itemText: string) {
8585
let itemLocator: Locator | undefined;
8686
let currentPageUrl = await this.getPageUrl();
8787
if (currentPageUrl.includes('cart')) {

0 commit comments

Comments
 (0)