Skip to content

Commit

Permalink
Test assignees section on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Sep 27, 2022
1 parent 85300bb commit 3a20d03
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions x-pack/test/functional_with_es_ssl/apps/cases/upgrade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
const supertest = getService('supertest');
const testSubjects = getService('testSubjects');
const find = getService('find');
const toasts = getService('toasts');

const updateConnector = async (id: string, req: Record<string, unknown>) => {
const { body: connector } = await supertest
Expand Down Expand Up @@ -74,6 +75,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
});

describe('Case view page', function () {
it('does not show any error toasters', async () => {
expect(await toasts.getToastCount()).to.be(0);
});

it('shows the title correctly', async () => {
const title = await testSubjects.find('header-page-title');
expect(await title.getVisibleText()).equal('Upgrade test in Kibana');
Expand Down Expand Up @@ -275,6 +280,10 @@ export default ({ getPageObject, getService }: FtrProviderContext) => {
it('shows the add comment button', async () => {
await testSubjects.exists('submit-comment');
});

it('shows the assignees section', async () => {
await testSubjects.exists('case-view-assignees');
});
});
});
};

0 comments on commit 3a20d03

Please sign in to comment.