Chore: Mobile: Increase test timeout to try to fix CI failure (#10552)

This commit is contained in:
Henry Heino
2024-06-11 07:49:57 +01:00
committed by GitHub
parent 940739ce12
commit 7ee5cad21e
@@ -240,8 +240,9 @@ describe('PluginStates.installed', () => {
expect(updateButton).toBeVisible();
await user.press(updateButton);
// After updating, the update button should read "updated"
const updatedButton = await screen.findByRole('button', { name: 'Updated', disabled: true, timeout: 8000 });
// After updating, the update button should read "updated". Use a large
// timeout because updating plugins can be slow, particularly in CI.
const updatedButton = await screen.findByRole('button', { name: 'Updated', disabled: true, timeout: 16000 });
expect(updatedButton).toBeVisible();
// Should be marked as updated.