Skip to content

Commit

Permalink
[ftr] update svl search config and fix custom role test
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlemeshko committed Oct 14, 2024
1 parent 62ca320 commit 4a0f9f8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default createTestConfig({
`--xpack.cloud.id=ES3_FTR_TESTS:ZmFrZS1kb21haW4uY2xkLmVsc3RjLmNvJGZha2Vwcm9qZWN0aWQuZXMkZmFrZXByb2plY3RpZC5rYg==`,
`--xpack.cloud.serverless.project_id=fakeprojectid`,
`--xpack.cloud.serverless.project_name=ES3_FTR_TESTS`,
`--xpack.cloud.serverless.project_type=elasticsearch`,
`--xpack.cloud.base_url=https://fake-cloud.elastic.co`,
`--xpack.cloud.profile_url=/user/settings/`,
`--xpack.cloud.billing_url=/billing/overview/`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
const testSubjects = getService('testSubjects');
let roleAuthc: RoleCredentials;

// Failing: See https://github.com/elastic/kibana/issues/195976
describe.skip('With custom role', function () {
describe('With custom role', function () {
// skipping on MKI while we are working on a solution
this.tags(['skipMKI']);
before(async () => {
Expand Down Expand Up @@ -59,12 +58,14 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
it('should have limited navigation menu', async () => {
await pageObjects.svlCommonPage.assertUserAvatarExists();
// discover navigation link is present
await testSubjects.existOrFail('~nav-item-search_project_nav.kibana.discover');
// dashboard and index_management navigation links are hidden
await testSubjects.missingOrFail('~nav-item-search_project_nav.kibana.dashboard');
await testSubjects.missingOrFail(
'nav-item-search_project_nav.content.management:index_management'
);
await testSubjects.existOrFail('~nav-item-id-discover');
// index management, dev tools, dashboards and maps navigation links are hidden
await testSubjects.missingOrFail('~nav-item-id-management:index_management');
await testSubjects.missingOrFail('~nav-item-id-dev_tools');
// Playground should be also hidden, probably a bug
// await testSubjects.missingOrFail('~nav-item-id-searchPlayground');
await testSubjects.missingOrFail('~nav-item-id-dashboards');
await testSubjects.missingOrFail('~nav-item-id-maps');
});

it('should access Discover app', async () => {
Expand Down

0 comments on commit 4a0f9f8

Please sign in to comment.