Skip to content

Commit

Permalink
Remove context menu tests because context menu doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
phillipb committed Oct 29, 2020
1 parent d23a9eb commit d6c09b2
Showing 1 changed file with 0 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,24 +97,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await testSubjects.existOrFail('~waffleMap');
});

describe('context menu', () => {
before(async () => {
await testSubjects.click('~nodeContainer');
});

it(`does not show link to view logs`, async () => {
await retry.waitFor('context menu', () => testSubjects.exists('~nodeContextMenu'));
const link = await testSubjects.find('~viewLogsContextMenuItem');
expect(await link.isEnabled()).to.be(false);
});

it(`does not show link to view apm traces`, async () => {
await retry.waitFor('context menu', () => testSubjects.exists('~nodeContextMenu'));
const link = await testSubjects.find('~viewApmTracesContextMenuItem');
expect(await link.isEnabled()).to.be(false);
});
});

it(`doesn't show read-only badge`, async () => {
await globalNav.badgeMissingOrFail();
});
Expand Down Expand Up @@ -213,24 +195,6 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
await testSubjects.existOrFail('~waffleMap');
});

describe('context menu', () => {
before(async () => {
await testSubjects.click('~nodeContainer');
});

it(`does not show link to view logs`, async () => {
await retry.waitFor('context menu', () => testSubjects.exists('~nodeContextMenu'));
const link = await testSubjects.find('~viewLogsContextMenuItem');
expect(await link.isEnabled()).to.be(false);
});

it(`does not show link to view apm traces`, async () => {
await retry.waitFor('context menu', () => testSubjects.exists('~nodeContextMenu'));
const link = await testSubjects.find('~viewApmTracesContextMenuItem');
expect(await link.isEnabled()).to.be(false);
});
});

it(`shows read-only badge`, async () => {
await globalNav.badgeExistsOrFail('Read only');
});
Expand Down

0 comments on commit d6c09b2

Please sign in to comment.