Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
change name functions
Browse files Browse the repository at this point in the history
  • Loading branch information
gigitux committed Nov 29, 2022
1 parent c02df57 commit 421435f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion tests/e2e/config/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = {
testMatch: [
'**/__tests__/**/*.[jt]s?(x)',
'**/?(*.)+(spec|test).[jt]s?(x)',
'!**/?(*.)+(utils).[jt]s?(x)',
'!**/?(*-)+(utils).[jt]s?(x)',
],
testPathIgnorePatterns: [ '<rootDir>/tests/e2e/specs/performance' ],
transformIgnorePatterns: [ 'node_modules/(?!(woocommerce)/)' ],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ import {
addProductQueryBlock,
block,
configurateProductQueryBlock,
getClassicProductsListName,
getProductQueryProductsListName,
getClassicProductsName,
getProductQueryProductsName,
} from './utils';

describe( `${ block.name } Block`, () => {
Expand Down Expand Up @@ -45,8 +45,8 @@ describe( `${ block.name } Block`, () => {
} );

it( 'should render the same products', async () => {
const classicProducts = await getClassicProductsListName();
const products = await getProductQueryProductsListName();
const classicProducts = await getClassicProductsName();
const products = await getProductQueryProductsName();

expect(
classicProducts.every( ( val, idx ) => val === products[ idx ] )
Expand All @@ -73,8 +73,8 @@ describe( `${ block.name } Block`, () => {
} );

it( 'should render the same products', async () => {
const classicProducts = await getClassicProductsListName();
const products = await getProductQueryProductsListName();
const classicProducts = await getClassicProductsName();
const products = await getProductQueryProductsName();

expect(
classicProducts.every( ( val, idx ) => val === products[ idx ] )
Expand All @@ -100,8 +100,8 @@ describe( `${ block.name } Block`, () => {
} );

it( 'should render the same products', async () => {
const classicProducts = await getClassicProductsListName();
const products = await getProductQueryProductsListName();
const classicProducts = await getClassicProductsName();
const products = await getProductQueryProductsName();

expect(
classicProducts.every( ( val, idx ) => val === products[ idx ] )
Expand All @@ -127,8 +127,8 @@ describe( `${ block.name } Block`, () => {
} );

it( 'should render the same products', async () => {
const classicProducts = await getClassicProductsListName();
const products = await getProductQueryProductsListName();
const classicProducts = await getClassicProductsName();
const products = await getProductQueryProductsName();

expect(
classicProducts.every( ( val, idx ) => val === products[ idx ] )
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/specs/shopper/product-query/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const configurateProductQueryBlock = async () => {
await enableInheritQueryFromTemplateSetting();
};

export const getClassicProductsListName = async () => {
export const getClassicProductsName = async () => {
const products = await page.$$(
block.selectors.frontend.classicProductsListName
);
Expand All @@ -55,7 +55,7 @@ export const getClassicProductsListName = async () => {
);
};

export const getProductQueryProductsListName = async () => {
export const getProductQueryProductsName = async () => {
const products = await page.$$(
block.selectors.frontend.productQueryProductsListName
);
Expand Down

0 comments on commit 421435f

Please sign in to comment.