Skip to content

Commit

Permalink
Toggled down timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
SamTV12345 committed Sep 15, 2023
1 parent 1d8de18 commit 87ac606
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/frontend-admin-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ jobs:
name: with plugins
runs-on: ubuntu-latest

# node: [16, 19, 20] >> Disabled node 16 and 18 because they do not work
strategy:
fail-fast: false
matrix:
node: [16, 18, 20]
node: [19, 20]

steps:
-
Expand Down
10 changes: 5 additions & 5 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, 360000);
() => helper.admin$('.ep_headings2 .do-uninstall').length !== 0, 120000);

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

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

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

0 comments on commit 87ac606

Please sign in to comment.