mirror of
https://github.com/Sosokker/B2D-Ventures.git
synced 2025-12-18 13:34:06 +01:00
12 lines
556 B
TypeScript
12 lines
556 B
TypeScript
import { Page, expect } from "@playwright/test";
|
|
|
|
export const searchBusiness = async (page: Page, business: string) => {
|
|
console.log("search for " + business);
|
|
await page.locator("li").nth(3).click();
|
|
await page.getByPlaceholder("Enter business name...").fill(business);
|
|
await page.getByPlaceholder("Enter business name...").press("Enter");
|
|
// await page.waitForURL("http://127.0.0.1:3000/find?query=" + business);
|
|
await expect(page.getByRole("link", { name: "Business logo " + business })).toBeHidden();
|
|
console.log("found" + business);
|
|
};
|