Skip to content

Commit

Permalink
Fixes serverless feature flag org member navigation cards test (elast…
Browse files Browse the repository at this point in the history
…ic#191896)

Closes elastic#191856

## Summary

Skips serverlesss observability project for the org members nav card.
This is a custom roles related feature, and custom roles do not apply to
observability projects at this time.


### Tests
-
x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts
Note: will have to comment out the infra test file in the feature flag
index file in order to run
(x-pack/test_serverless/functional/test_suites/observability/index.feature_flags.ts
ln 12 `require.resolve('./infra'));`) See
elastic#191809.
  • Loading branch information
jeramysoucy authored Sep 2, 2024
1 parent 1606db8 commit f2aba46
Showing 1 changed file with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,16 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
expect(url).to.contain('/management/security/roles');
});

it('displays the Organization members management card, and will navigate to the cloud organization URL', async () => {
await pageObjects.svlManagementPage.assertOrgMembersManagementCardExists();
await pageObjects.svlManagementPage.clickOrgMembersManagementCard();
describe('Organization members', function () {
this.tags('skipSvlOblt'); // Observability will not support custom roles
it('displays the Organization members management card, and will navigate to the cloud organization URL', async () => {
await pageObjects.svlManagementPage.assertOrgMembersManagementCardExists();
await pageObjects.svlManagementPage.clickOrgMembersManagementCard();

const url = await browser.getCurrentUrl();
// `--xpack.cloud.organization_url: '/account/members'`,
expect(url).to.contain('/account/members');
const url = await browser.getCurrentUrl();
// `--xpack.cloud.organization_url: '/account/members'`,
expect(url).to.contain('/account/members');
});
});

it('displays the spaces management card, and will navigate to the spaces management UI', async () => {
Expand Down Expand Up @@ -97,14 +100,17 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
await pageObjects.svlManagementPage.assertRoleManagementCardDoesNotExist();
});

it('displays the organization members management card, and will navigate to the cloud organization URL', async () => {
// The org members nav card is always visible because there is no way to check if a user has approprite privileges
await pageObjects.svlManagementPage.assertOrgMembersManagementCardExists();
await pageObjects.svlManagementPage.clickOrgMembersManagementCard();
describe('Organization members', function () {
this.tags('skipSvlOblt'); // Observability will not support custom roles
it('displays the organization members management card, and will navigate to the cloud organization URL', async () => {
// The org members nav card is always visible because there is no way to check if a user has approprite privileges
await pageObjects.svlManagementPage.assertOrgMembersManagementCardExists();
await pageObjects.svlManagementPage.clickOrgMembersManagementCard();

const url = await browser.getCurrentUrl();
// `--xpack.cloud.organization_url: '/account/members'`,
expect(url).to.contain('/account/members');
const url = await browser.getCurrentUrl();
// `--xpack.cloud.organization_url: '/account/members'`,
expect(url).to.contain('/account/members');
});
});

it('should not display the spaces management card', async () => {
Expand Down

0 comments on commit f2aba46

Please sign in to comment.