Skip to content

Commit

Permalink
Fixed jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Feb 4, 2020
1 parent 5734040 commit 9e52760
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,12 @@ describe('alerts_list component empty', () => {
});

it('renders empty list', () => {
expect(
wrapper.find('[data-test-subj="createFirstConnectorEmptyPrompt"]').exists()
).toBeTruthy();
expect(wrapper.find('[data-test-subj="createFirstAlertEmptyPrompt"]').exists()).toBeTruthy();
});

it('renders Create alert button', () => {
expect(
wrapper.find('[data-test-subj="createFirstActionButton"]').find('EuiButton')
wrapper.find('[data-test-subj="createFirstAlertButton"]').find('EuiButton')
).toHaveLength(1);
expect(wrapper.find('AlertAdd')).toHaveLength(1);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
const testSubjects = getService('testSubjects');
const pageObjects = getPageObjects(['common', 'triggersActionsUI', 'header']);
const supertest = getService('supertest');
const retry = getService('retry');
const find = getService('find');

async function createAlert() {
Expand Down

0 comments on commit 9e52760

Please sign in to comment.