Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions e2e/specs/review.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,13 @@ describe("grr review window", () => {
});

async function setInputValue(selector: string, value: string): Promise<void> {
await browser.execute((targetSelector, targetValue) => {
await browser.waitUntil(async () => await browser.execute((targetSelector, targetValue) => {
const input = document.querySelector<HTMLInputElement | HTMLTextAreaElement>(targetSelector);
if (!input) throw new Error(`No input matched ${targetSelector}`);
if (!input) return false;
input.value = targetValue;
input.dispatchEvent(new Event("input", { bubbles: true }));
}, selector, value);
return true;
}, selector, value), { timeout: 5_000, interval: 50, timeoutMsg: `No input matched ${selector}` });
}

async function clickElement(selector: string): Promise<void> {
Expand Down
Loading
Loading