File tree Expand file tree Collapse file tree
pageComponents/productShoppingComponent Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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' ) ) {
You can’t perform that action at this time.
0 commit comments