Skip to content

Commit

Permalink
Fix flaky e2e-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Jun 19, 2021
1 parent 98f937c commit 7e261be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/tests/message.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ describe('Messages', () => {
it('deletes all linux messages', async () => {
await navigate('Linux');
await page.click('#delete-all');
await page.waitForSelector('#delete-all:disabled');
await expectMessages({
all: [windows3, backup1, windows1],
windows: [windows3, windows1],
Expand Down Expand Up @@ -268,6 +269,7 @@ describe('Messages', () => {
it('deletes all backup messages and navigates to all messages', async () => {
await navigate('Backup');
await page.click('#delete-all');
await page.waitForSelector('#delete-all:disabled');
await navigate('All Messages');
await createMessage(backup3, backupServerToken);
await waitForExists(page, '.message .title', backup3.title);
Expand Down
1 change: 1 addition & 0 deletions ui/src/tests/plugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ describe('plugin', () => {
await toggleEnabled(1);
}
await inDetailPage(1, async () => {
await page.waitForSelector('.displayer a');
const hook = await page.$eval('.displayer a', (el) => el.getAttribute('href'));
await axios.get(hook!);
});
Expand Down

0 comments on commit 7e261be

Please sign in to comment.