admin/plugins: fix test

fix-admintests
webzwo0i 2023-07-30 04:09:57 +02:00
parent 05eddd03a1
commit ae65858080
1 changed files with 5 additions and 0 deletions

View File

@ -144,6 +144,11 @@ describe('Plugins page', function () {
// ensure its gone
await helper.waitForPromise(() => helper.admin$('#installed-plugins .ep_headings2').length === 0, 200000);
// delay the search query
let delayed = false;
setTimeout(() => {delayed = true;}, 5000);
await helper.waitForPromise(() => delayed === true, 6000);
// ensure search still works
helper.admin$('#search-query').val('ep_font');
await helper.waitForPromise(() => helper.admin$('.results').children().length < 50, 240000);