Rename configurateFilterProductsByAttributeBlock() to configureAttributeFilterBlock() (https://github.com/woocommerce/woocommerce-blocks/pull/7970)

* Rename configurateFilterProductsByAttributeBlock() to configurateFilterByAttributeBlock()

* Rename configurateFilterProductsByAttributeBlock() to configureAttributeFilterBlock()
This commit is contained in:
Albert Juhé Lluveras 2022-12-20 17:19:20 +01:00 committed by GitHub
parent 77b08b6ed3
commit 86604e8945
1 changed files with 3 additions and 5 deletions

View File

@ -66,9 +66,7 @@ const insertBlocks = async () => {
await insertBlock( block.name );
};
const configurateFilterProductsByAttributeBlock = async (
pageOrCanvas: Page | Frame
) => {
const configureAttributeFilterBlock = async ( pageOrCanvas: Page | Frame ) => {
await pageOrCanvas.$eval(
selectors.editor.firstAttributeInTheList,
( el ) => ( el as HTMLElement ).click()
@ -99,7 +97,7 @@ describe( 'Shopper → Active Filters Block', () => {
await insertBlocks();
await insertBlockUsingSlash( 'All Products' );
await configurateFilterProductsByAttributeBlock( page );
await configureAttributeFilterBlock( page );
await publishPost();
const link = await page.evaluate( () =>
@ -223,7 +221,7 @@ describe( 'Shopper → Active Filters Block', () => {
await insertBlocks();
const canvasEl = canvas();
await configurateFilterProductsByAttributeBlock( canvasEl );
await configureAttributeFilterBlock( canvasEl );
await saveTemplate();
} );