Skip to content

Open-source AI browser agent for Chrome and Firefox (monorepo) 🧠

test(feedback): wait safely for asynchronous submission result

Codex release-state testc5a12b92e954
diff --git a/test/feedback-traces.mjs b/test/feedback-traces.mjs
index 3cd8bfa38..a63332dad 100644
--- a/test/feedback-traces.mjs
+++ b/test/feedback-traces.mjs
@@ -572,7 +572,7 @@ test('Chrome unpacked extension: worker flush, consent, login return and isolate
assert.equal(context.pages().some(page => page.url().startsWith('https://github.com/')), false);
const githubOpened = context.waitForEvent('page');
await panel.getByRole('button', { name: 'Upload trace and open GitHub', exact: true }).click();
- await panel.waitForFunction(() => feedbackResult === true || globalThis.feedbackError);
+ await panel.waitForFunction(() => globalThis.feedbackResult === true || globalThis.feedbackError);
assert.equal(await panel.evaluate(() => globalThis.feedbackError), undefined);
const github = await githubOpened;
await github.getByRole('link', { name: 'Return to feedback' }).waitFor({ state: 'visible' });