[Alerting] Fixes mistake in empty list assertion (#60896)

This commit is contained in:
Gidi Meir Morris 2020-03-23 13:56:26 +00:00 committed by GitHub
parent e235321903
commit a5aafc039d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,11 +111,11 @@ export function TriggersActionsPageProvider({ getService }: FtrProviderContext)
const table = await find.byCssSelector('[data-test-subj="alertsList"] table');
const $ = await table.parseDomContent();
const rows = $.findTestSubjects('alert-row').toArray();
expect(rows.length).not.to.eql(0);
expect(rows.length).to.eql(0);
const emptyRow = await find.byCssSelector(
'[data-test-subj="alertsList"] table .euiTableRow'
);
expect(await emptyRow.getVisibleText()).not.to.eql('No items found');
expect(await emptyRow.getVisibleText()).to.eql('No items found');
});
return true;
},