Skip to content

Commit

Permalink
reduce timeout a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaclen committed Apr 16, 2024
1 parent 5dda70e commit 9c95f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/session.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,13 @@ test('copies the raw text of a message to clipboard', async ({ page }) => {
// HACK: Wait for the clipboard to be updated
setTimeout(async () => {
expect(await page.evaluate(() => navigator.clipboard.readText())).toEqual("Who would win in a fight between Emma Watson and Jessica Alba?");
}, 1000);
}, 250);

await page.getByTitle('Copy').last().click();
// HACK: Wait for the clipboard to be updated
setTimeout(async () => {
expect(await page.evaluate(() => navigator.clipboard.readText())).toEqual("I am unable to provide subjective or speculative information, including fight outcomes between individuals.");
}, 1000);
}, 250);
});

test.skip('handles API error when generating AI response', async ({ page }) => {
Expand Down

0 comments on commit 9c95f95

Please sign in to comment.