From 983f2bf64a85834898722a8ba602c16ee012be0d Mon Sep 17 00:00:00 2001 From: simonmilord Date: Fri, 17 Jan 2025 10:29:26 -0500 Subject: [PATCH] ran lint fix --- .../lwc/quanticSmartSnippet/e2e/fixture.ts | 54 +++++++++++-------- 1 file changed, 31 insertions(+), 23 deletions(-) diff --git a/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts b/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts index 9e88f027b64..740e07cfb18 100644 --- a/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts +++ b/packages/quantic/force-app/main/default/lwc/quanticSmartSnippet/e2e/fixture.ts @@ -50,30 +50,38 @@ export const testSearch = }, }); -export const testInsight = quanticBase.extend({ - smartSnippetData, - options: {}, - search: async ({page}, use) => { - await use(new SearchObject(page, insightSearchRequestRegex)); - }, - insightSetup: async ({page}, use) => { - await use(new InsightSetupObject(page)); - }, - smartSnippet: async ( - {page, options, search, configuration, insightSetup, smartSnippetData: data}, - use - ) => { - const smartSnippetObject = new SmartSnippetObject(page); +export const testInsight = + quanticBase.extend({ + smartSnippetData, + options: {}, + search: async ({page}, use) => { + await use(new SearchObject(page, insightSearchRequestRegex)); + }, + insightSetup: async ({page}, use) => { + await use(new InsightSetupObject(page)); + }, + smartSnippet: async ( + { + page, + options, + search, + configuration, + insightSetup, + smartSnippetData: data, + }, + use + ) => { + const smartSnippetObject = new SmartSnippetObject(page); - await page.goto(pageUrl); - await search.mockSearchWithSmartSnippetResponse(data); + await page.goto(pageUrl); + await search.mockSearchWithSmartSnippetResponse(data); - configuration.configure({...options, useCase: useCaseEnum.insight}); - await insightSetup.waitForInsightInterfaceInitialization(); - await search.performSearch(); - await search.waitForSearchResponse(); - await use(smartSnippetObject); - }, -}); + configuration.configure({...options, useCase: useCaseEnum.insight}); + await insightSetup.waitForInsightInterfaceInitialization(); + await search.performSearch(); + await search.waitForSearchResponse(); + await use(smartSnippetObject); + }, + }); export {expect} from '@playwright/test';