mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
[Files management] Fix flaky functional test (#162146)
This commit is contained in:
parent
e1b4910f3c
commit
fde21b15de
1 changed files with 5 additions and 4 deletions
|
@ -6,12 +6,12 @@
|
|||
* Side Public License, v 1.
|
||||
*/
|
||||
|
||||
import expect from '@kbn/expect';
|
||||
import { FtrProviderContext } from '../../ftr_provider_context';
|
||||
|
||||
export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
||||
const PageObjects = getPageObjects(['common', 'filesManagement']);
|
||||
const testSubjects = getService('testSubjects');
|
||||
const retry = getService('retry');
|
||||
|
||||
describe('Files management', () => {
|
||||
before(async () => {
|
||||
|
@ -21,9 +21,10 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
|
|||
it(`should render an empty prompt`, async () => {
|
||||
await testSubjects.existOrFail('filesManagementApp');
|
||||
|
||||
const pageText = await (await testSubjects.find('filesManagementApp')).getVisibleText();
|
||||
|
||||
expect(pageText).to.contain('No files found');
|
||||
await retry.waitFor('Render empty files prompt', async () => {
|
||||
const pageText = await (await testSubjects.find('filesManagementApp')).getVisibleText();
|
||||
return pageText.includes('No files found');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue