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.
This commit is contained in:
Jannis Mattheis 2020-03-22 09:20:05 +01:00
parent e6bd7c03dd
commit fc1ac65954
1 changed files with 1 additions and 3 deletions

View File

@ -70,11 +70,9 @@ const hasReceivedMessage = async (title: RegExp, content: RegExp) => {
const inDetailPage = async (id: number, callback: () => Promise<void>) => { const inDetailPage = async (id: number, callback: () => Promise<void>) => {
const name = await innerText(page, $table.cell(id, Col.Name)); 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 waitForExists(page, '.plugin-info .name > span', name);
await callback(); await callback();
await page.click('#navigate-plugins'); await page.click('#navigate-plugins');
await waitForExists(page, selector.heading(), 'Plugins'); await waitForExists(page, selector.heading(), 'Plugins');
await page.waitForSelector($table.selector()); await page.waitForSelector($table.selector());