Increased timeout further.

This commit is contained in:
SamTV12345 2023-09-15 22:24:12 +02:00
parent 346ea79674
commit 1d8de185b8
No known key found for this signature in database
GPG key ID: E63EEC7466038043

View file

@ -94,20 +94,20 @@ describe('Plugins page', function () {
it('Attempt to Uninstall a plugin', async function () { it('Attempt to Uninstall a plugin', async function () {
this.timeout(360000); this.timeout(360000);
await helper.waitForPromise( await helper.waitForPromise(
() => helper.admin$('.ep_headings2 .do-uninstall').length !== 0, 240000); () => helper.admin$('.ep_headings2 .do-uninstall').length !== 0, 360000);
helper.admin$('.ep_headings2 .do-uninstall').trigger('click'); helper.admin$('.ep_headings2 .do-uninstall').trigger('click');
// ensure its showing uninstalling // ensure its showing uninstalling
await helper.waitForPromise( await helper.waitForPromise(
() => helper.admin$('.ep_headings2 .message') () => helper.admin$('.ep_headings2 .message')
.text() === 'Uninstalling', 240000); .text() === 'Uninstalling', 360000);
// ensure its gone // ensure its gone
await helper.waitForPromise( await helper.waitForPromise(
() => helper.admin$('.ep_headings2').length === 0, 240000); () => helper.admin$('.ep_headings2').length === 0, 360000);
helper.admin$('#search-query').val('ep_font'); 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 < 300, 360000);
await helper.waitForPromise(() => helper.admin$('.results').children().length > 0, 240000); await helper.waitForPromise(() => helper.admin$('.results').children().length > 0, 360000);
}); });
}); });