Skip to content

Commit

Permalink
Increased timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Sep 15, 2023
1 parent 4145a11 commit 346ea79
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tests/frontend/specs/adminupdateplugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,20 @@ describe('Plugins page', function () {
it('Attempt to Uninstall a plugin', async function () {
this.timeout(360000);
await helper.waitForPromise(
() => helper.admin$('.ep_headings2 .do-uninstall').length !== 0, 120000);
() => helper.admin$('.ep_headings2 .do-uninstall').length !== 0, 240000);

helper.admin$('.ep_headings2 .do-uninstall').trigger('click');

// ensure its showing uninstalling
await helper.waitForPromise(
() => helper.admin$('.ep_headings2 .message')
.text() === 'Uninstalling', 120000);
.text() === 'Uninstalling', 240000);
// ensure its gone
await helper.waitForPromise(
() => helper.admin$('.ep_headings2').length === 0, 240000);

helper.admin$('#search-query').val('ep_font');
await helper.waitForPromise(() => helper.admin$('.results').children().length < 300, 240000);
await helper.waitForPromise(() => helper.admin$('.results').children().length > 0, 1000);
await helper.waitForPromise(() => helper.admin$('.results').children().length > 0, 240000);
});
});

0 comments on commit 346ea79

Please sign in to comment.