Skip to content

Commit

Permalink
[Alerting] Fixes mistake in empty list assertion (#60896)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris authored Mar 23, 2020
1 parent e235321 commit a5aafc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down

0 comments on commit a5aafc0

Please sign in to comment.