Skip to content

Commit

Permalink
test to verify alerts page header says alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
EricDavisX committed Mar 14, 2020
1 parent 6c7bf4f commit 8f1ba3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export const AlertIndex = memo(() => {
<EuiPageContentHeader>
<EuiPageContentHeaderSection>
<EuiTitle size="l">
<h1>
<h1 data-test-subj="alertsViewTitle">
<FormattedMessage
id="xpack.endpoint.alertList.viewTitle"
defaultMessage="Alerts"
Expand Down
2 changes: 2 additions & 0 deletions x-pack/test/functional/apps/endpoint/alert_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export default function({ getPageObjects, getService }: FtrProviderContext) {

it('loads the Alert List Page', async () => {
await testSubjects.existOrFail('alertListPage');
const alertsTitle = await testSubjects.getVisibleText('alertsViewTitle');
expect(alertsTitle).to.equal('Alerts');
});
it('includes alerts search bar', async () => {
await testSubjects.existOrFail('alertsSearchBar');
Expand Down

0 comments on commit 8f1ba3c

Please sign in to comment.