mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[Alerting] Fixes mistake in empty list assertion (#60896)
This commit is contained in:
parent
e235321903
commit
a5aafc039d
1 changed files with 2 additions and 2 deletions
|
@ -111,11 +111,11 @@ export function TriggersActionsPageProvider({ getService }: FtrProviderContext)
|
||||||
const table = await find.byCssSelector('[data-test-subj="alertsList"] table');
|
const table = await find.byCssSelector('[data-test-subj="alertsList"] table');
|
||||||
const $ = await table.parseDomContent();
|
const $ = await table.parseDomContent();
|
||||||
const rows = $.findTestSubjects('alert-row').toArray();
|
const rows = $.findTestSubjects('alert-row').toArray();
|
||||||
expect(rows.length).not.to.eql(0);
|
expect(rows.length).to.eql(0);
|
||||||
const emptyRow = await find.byCssSelector(
|
const emptyRow = await find.byCssSelector(
|
||||||
'[data-test-subj="alertsList"] table .euiTableRow'
|
'[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;
|
return true;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue