Wait for GitHub setup request before asserting captured key

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-09-15 23:20:23 -05:00
1 parent b330ec27e2
commit ab74c31028
1 file changed
+2 -1
+2 -1
View File
@@ -1559,9 +1559,10 @@ test.describe.serial("native chat adapter UI", () => {
await fillProviderSetup(page, provider);
if (provider.provider === "github") {
// A completed click does not mean the async configure request reached the mock.
await expect.poll(() => mock.setupAttempts).toBe(2);
expect(mock.githubPrivateKeyMatchedFile).toBe(true);
expect(mock.githubPrivateKeyMatchedPaste).toBe(true);
expect(mock.setupAttempts).toBe(2);
}
if (provider.provider === "telegram") {