Skip to content

Commit

Permalink
wip: increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
fmaclen committed Apr 16, 2024
1 parent 9439de2 commit 5dda70e
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?");
}, 150);
}, 1000);

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.");
}, 150);
}, 1000);
});

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

0 comments on commit 5dda70e

Please sign in to comment.