Skip to content

Commit

Permalink
CS Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martynmjones committed May 13, 2024
1 parent 5976d74 commit 9f997db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions includes/class-wc-abstract-google-analytics-js.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ function ( $item ) {
* @param int $variation_id Variation product ID.
* @param array|bool $variation An array containing product variation attributes to include in the product data.
* For the "variation" type products, we'll use product->get_attributes.
* @param bool|int $quantity Quantity to include in the formatted product object
*
* @return array
*/
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/gtag-events/blocks-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ test.describe( 'GTag events on block pages', () => {

await createProductsBlockShopPage();
await page.goto( `products-block-shop` );

const addToCartButton = await page.locator( addToCart ).first();

await addToCartButton.click();
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/gtag-events/classic-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ test.describe( 'GTag events on classic pages', () => {

await page.goto( `?p=${ simpleProductID }` );

await page.locator( '.quantity input.qty' ).first().fill('3');
await page.locator( '.quantity input.qty' ).first().fill( '3' );

const addToCart = `.single_add_to_cart_button[value="${ simpleProductID }"]`;
const addToCartButton = await page.locator( addToCart ).first();
Expand Down

0 comments on commit 9f997db

Please sign in to comment.