From fc1ac65954a302126189b1f5410520328ff7d4bc Mon Sep 17 00:00:00 2001 From: Jannis Mattheis Date: Sun, 22 Mar 2020 09:20:05 +0100 Subject: [PATCH] Fix flaky plugin ui test Sad thing, I don't really know why it doesn't work on travis-ci, but somehow, the click doesn't register or atleast doesn't do what it should. --- ui/src/tests/plugin.test.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/tests/plugin.test.ts b/ui/src/tests/plugin.test.ts index 27839e8..dccd9ef 100644 --- a/ui/src/tests/plugin.test.ts +++ b/ui/src/tests/plugin.test.ts @@ -70,11 +70,9 @@ const hasReceivedMessage = async (title: RegExp, content: RegExp) => { const inDetailPage = async (id: number, callback: () => Promise) => { const name = await innerText(page, $table.cell(id, Col.Name)); - await page.click($table.cell(id, Col.Details)); + await page.click($table.cell(id, Col.Details, 'button')); await waitForExists(page, '.plugin-info .name > span', name); - await callback(); - await page.click('#navigate-plugins'); await waitForExists(page, selector.heading(), 'Plugins'); await page.waitForSelector($table.selector());