Skip to content

Commit

Permalink
fixing functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cauemarcondes committed Jun 3, 2020
1 parent 9111811 commit 0d5b98d
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Stack Management']);
expect(navLinks).to.contain('Stack Management');
});

it(`allows settings to be changed`, async () => {
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows Management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Stack Management']);
expect(navLinks).to.contain('Stack Management');
});

it(`does not allow settings to be changed`, async () => {
Expand Down Expand Up @@ -178,7 +178,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows Management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Discover', 'Stack Management']);
expect(navLinks).to.contain('Stack Management');
});

it(`does not allow navigation to advanced settings; redirects to management home`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows apm navlink', async () => {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql(['APM', 'Stack Management']);
expect(navLinks.map((link) => link.text)).to.contain('APM');
});

it('can navigate to APM app', async () => {
Expand Down Expand Up @@ -109,7 +109,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows apm navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['APM', 'Stack Management']);
expect(navLinks).to.contain('APM');
});

it('can navigate to APM app', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows canvas navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Canvas', 'Stack Management']);
expect(navLinks).to.contain('Canvas');
});

it(`landing page shows "Create new workpad" button`, async () => {
Expand Down Expand Up @@ -142,7 +142,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows canvas navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Canvas', 'Stack Management']);
expect(navLinks).to.contain('Canvas');
});

it(`landing page shows disabled "Create new workpad" button`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows Dev Tools navlink', async () => {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql(['Dev Tools', 'Stack Management']);
expect(navLinks.map((link) => link.text)).to.contain('Dev Tools');
});

describe('console', () => {
Expand Down Expand Up @@ -144,7 +144,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it(`shows 'Dev Tools' navlink`, async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Dev Tools', 'Stack Management']);
expect(navLinks).to.contain('Dev Tools');
});

describe('console', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows discover navlink', async () => {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql(['Discover', 'Stack Management']);
expect(navLinks.map((link) => link.text)).to.contain('Discover');
});

it('shows save button', async () => {
Expand Down Expand Up @@ -169,7 +169,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows discover navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Discover', 'Stack Management']);
expect(navLinks).to.contain('Discover');
});

it(`doesn't show save button`, async () => {
Expand Down Expand Up @@ -260,7 +260,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows discover navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Discover', 'Stack Management']);
expect(navLinks).to.contain('Discover');
});

it(`doesn't show save button`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows graph navlink', async () => {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql(['Graph', 'Stack Management']);
expect(navLinks.map((link) => link.text)).to.contain('Graph');
});

it('landing page shows "Create new graph" button', async () => {
Expand Down Expand Up @@ -127,7 +127,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows graph navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Graph', 'Stack Management']);
expect(navLinks).to.contain('Graph');
});

it('does not show a "Create new Workspace" button', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Stack Management']);
expect(navLinks).to.contain(['Stack Management']);
});

it(`index pattern listing shows create button`, async () => {
Expand Down Expand Up @@ -125,7 +125,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Stack Management']);
expect(navLinks).to.contain(['Stack Management']);
});

it(`index pattern listing doesn't show create button`, async () => {
Expand Down Expand Up @@ -177,7 +177,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows Management navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Discover', 'Stack Management']);
expect(navLinks).to.contain('Stack Management');
});

it(`doesn't show Index Patterns in management side-nav`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows metrics navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Metrics', 'Stack Management']);
expect(navLinks).to.contain('Metrics');
});

describe('infrastructure landing page without data', () => {
Expand Down Expand Up @@ -177,7 +177,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows metrics navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Metrics', 'Stack Management']);
expect(navLinks).to.contain('Metrics');
});

describe('infrastructure landing page without data', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows maps navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Maps', 'Stack Management']);
expect(navLinks).to.contain('Maps');
});

it(`allows a map to be created`, async () => {
Expand Down Expand Up @@ -153,7 +153,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows Maps navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Maps', 'Stack Management']);
expect(navLinks).to.contain('Maps');
});

it(`does not show create new button`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows timelion navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Timelion', 'Stack Management']);
expect(navLinks).to.contain('Timelion');
});

it(`allows a timelion sheet to be created`, async () => {
Expand Down Expand Up @@ -112,7 +112,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows timelion navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Timelion', 'Stack Management']);
expect(navLinks).to.contain('Timelion');
});

it(`does not allow a timelion sheet to be created`, async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows uptime navlink', async () => {
const navLinks = await appsMenu.readLinks();
expect(navLinks.map((link) => link.text)).to.eql(['Uptime', 'Stack Management']);
expect(navLinks.map((link) => link.text)).to.contain('Uptime');
});

it('can navigate to Uptime app', async () => {
Expand Down Expand Up @@ -115,7 +115,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {

it('shows uptime navlink', async () => {
const navLinks = (await appsMenu.readLinks()).map((link) => link.text);
expect(navLinks).to.eql(['Uptime', 'Stack Management']);
expect(navLinks).to.contain('Uptime');
});

it('can navigate to Uptime app', async () => {
Expand Down

0 comments on commit 0d5b98d

Please sign in to comment.