Skip to content

Commit 0d5b98d

Browse files
committed
fixing functional tests
1 parent 9111811 commit 0d5b98d

File tree

11 files changed

+25
-25
lines changed

11 files changed

+25
-25
lines changed

x-pack/test/functional/apps/advanced_settings/feature_controls/advanced_settings_security.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6969

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

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

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

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

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

184184
it(`does not allow navigation to advanced settings; redirects to management home`, async () => {

x-pack/test/functional/apps/apm/feature_controls/apm_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6060

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

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

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

115115
it('can navigate to APM app', async () => {

x-pack/test/functional/apps/canvas/feature_controls/canvas_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6666

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

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

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

148148
it(`landing page shows disabled "Create new workpad" button`, async () => {

x-pack/test/functional/apps/dev_tools/feature_controls/dev_tools_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6363

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

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

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

150150
describe('console', () => {

x-pack/test/functional/apps/discover/feature_controls/discover_security.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
8282

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

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

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

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

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

266266
it(`doesn't show save button`, async () => {

x-pack/test/functional/apps/graph/feature_controls/graph_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6464

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

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

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

133133
it('does not show a "Create new Workspace" button', async () => {

x-pack/test/functional/apps/index_patterns/feature_controls/index_patterns_security.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
7171

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

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

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

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

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

183183
it(`doesn't show Index Patterns in management side-nav`, async () => {

x-pack/test/functional/apps/infra/feature_controls/infrastructure_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6161

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

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

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

183183
describe('infrastructure landing page without data', () => {

x-pack/test/functional/apps/maps/feature_controls/maps_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6666

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

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

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

159159
it(`does not show create new button`, async () => {

x-pack/test/functional/apps/timelion/feature_controls/timelion_security.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
6060

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

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

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

118118
it(`does not allow a timelion sheet to be created`, async () => {

0 commit comments

Comments
 (0)