@@ -23,7 +23,7 @@ test.describe('Cart functionalities (guest)', () => {
2323 */
2424 test . beforeEach ( async ( { page } , testInfo ) => {
2525 const productPage = new ProductPage ( page ) ;
26- await productPage . addSimpleProductToCart ( UIReference . productPage . simpleProductTitle , slugs . productpage . simpleProductSlug ) ;
26+ await productPage . addSimpleProductToCart ( UIReference . productPage . simpleProductTitle , slugs . productPage . simpleProductSlug ) ;
2727
2828 const productAddedNotification = `${ outcomeMarker . productPage . simpleProductAddedNotification } ${ UIReference . productPage . simpleProductTitle } ` ;
2929 const notificationValidator = new NotificationValidatorUtils ( page , testInfo ) ;
@@ -55,8 +55,8 @@ test.describe('Cart functionalities (guest)', () => {
5555 test ( 'Product_remains_in_cart_after_login' , { tag : [ '@cart' , '@account' , '@hot' ] } , async ( { page, browserName} ) => {
5656 await test . step ( 'Add another product to cart' , async ( ) => {
5757 const productpage = new ProductPage ( page ) ;
58- await page . goto ( slugs . productpage . secondSimpleProductSlug ) ;
59- await productpage . addSimpleProductToCart ( UIReference . productPage . secondSimpleProducTitle , slugs . productpage . secondSimpleProductSlug ) ;
58+ await page . goto ( slugs . productPage . secondSimpleProductSlug ) ;
59+ await productpage . addSimpleProductToCart ( UIReference . productPage . secondSimpleProducTitle , slugs . productPage . secondSimpleProductSlug ) ;
6060 } ) ;
6161
6262 await test . step ( 'Log in with account' , async ( ) => {
@@ -179,13 +179,13 @@ test.describe('Price checking tests', () => {
179179
180180 await test . step ( 'Step: Add simple product to cart' , async ( ) => {
181181 const productPage = new ProductPage ( page ) ;
182- await page . goto ( slugs . productpage . simpleProductSlug ) ;
182+ await page . goto ( slugs . productPage . simpleProductSlug ) ;
183183 // set quantity to 2 so we can see that the math works
184184 await page . getByLabel ( UIReference . productPage . quantityFieldLabel ) . fill ( '2' ) ;
185185
186186 productPagePrice = await page . locator ( UIReference . productPage . simpleProductPrice ) . innerText ( ) ;
187187 productPageAmount = await page . getByLabel ( UIReference . productPage . quantityFieldLabel ) . inputValue ( ) ;
188- await productPage . addSimpleProductToCart ( UIReference . productPage . simpleProductTitle , slugs . productpage . simpleProductSlug , '2' ) ;
188+ await productPage . addSimpleProductToCart ( UIReference . productPage . simpleProductTitle , slugs . productPage . simpleProductSlug , '2' ) ;
189189
190190 } ) ;
191191
@@ -222,13 +222,13 @@ test.describe('Price checking tests', () => {
222222 await test . step ( 'Step: Add configurable product to cart' , async ( ) => {
223223 const productPage = new ProductPage ( page ) ;
224224 // Navigate to the configurable product page so we can retrieve price and amount before adding it to cart
225- await page . goto ( slugs . productpage . configurableProductSlug ) ;
225+ await page . goto ( slugs . productPage . configurableProductSlug ) ;
226226 // set quantity to 2 so we can see that the math works
227227 await page . getByLabel ( 'Quantity' ) . fill ( '2' ) ;
228228
229229 productPagePrice = await page . locator ( UIReference . productPage . simpleProductPrice ) . innerText ( ) ;
230230 productPageAmount = await page . getByLabel ( UIReference . productPage . quantityFieldLabel ) . inputValue ( ) ;
231- await productPage . addConfigurableProductToCart ( UIReference . productPage . configurableProductTitle , slugs . productpage . configurableProductSlug , '2' ) ;
231+ await productPage . addConfigurableProductToCart ( UIReference . productPage . configurableProductTitle , slugs . productPage . configurableProductSlug , '2' ) ;
232232
233233 } ) ;
234234
0 commit comments