Store embed titles and search them
This commit is contained in:
@@ -125,6 +125,15 @@ try {
|
||||
|
||||
await page.getByRole("button", { name: "Advanced search" }).click();
|
||||
await page.waitForSelector(".vk-media-drawer:not([hidden])", { timeout: 5000 });
|
||||
check(
|
||||
"title search field present",
|
||||
(await page.locator('.vk-media-drawer input[type="text"]').count()) >= 1
|
||||
);
|
||||
check(
|
||||
"exact-match toggle present",
|
||||
(await page.locator(".vk-media-drawer .vk-media-check", { hasText: "Exact match" }).count()) === 1
|
||||
);
|
||||
|
||||
const sourceBoxes = await page
|
||||
.locator(".vk-media-exclude-group")
|
||||
.first()
|
||||
|
||||
Reference in New Issue
Block a user