Skip to content

Commit

Permalink
ran lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonMilord committed Jan 17, 2025
1 parent 5027450 commit 983f2bf
Showing 1 changed file with 31 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,38 @@ export const testSearch =
},
});

export const testInsight = quanticBase.extend<QuanticSmartSnippetE2EInsightFixtures>({
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<QuanticSmartSnippetE2EInsightFixtures>({
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';

0 comments on commit 983f2bf

Please sign in to comment.