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:
parent
77b08b6ed3
commit
86604e8945
|
@ -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();
|
||||
} );
|
||||
|
||||
|
|
Loading…
Reference in New Issue