mirror of
https://github.com/Unleash/unleash.git
synced 2025-06-04 01:18:20 +02:00
refactor: slight clean up after GAing multiple roles (#5133)
Follow up cleanup to https://github.com/Unleash/unleash/pull/5109 Based on https://github.com/Unleash/unleash/pull/5109#pullrequestreview-1689535863
This commit is contained in:
parent
599da89288
commit
90296bed82
@ -66,19 +66,6 @@ describe('project-access', () => {
|
|||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.login_UI();
|
cy.login_UI();
|
||||||
|
|
||||||
cy.intercept('GET', `${baseUrl}/api/admin/ui-config`, (req) => {
|
|
||||||
req.headers['cache-control'] =
|
|
||||||
'no-cache, no-store, must-revalidate';
|
|
||||||
req.on('response', (res) => {
|
|
||||||
if (res.body) {
|
|
||||||
res.body.flags = {
|
|
||||||
...res.body.flags,
|
|
||||||
multipleRoles: true,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
cy.visit(`/projects/${groupAndProjectName}/settings/access`);
|
cy.visit(`/projects/${groupAndProjectName}/settings/access`);
|
||||||
if (document.querySelector("[data-testid='CLOSE_SPLASH']")) {
|
if (document.querySelector("[data-testid='CLOSE_SPLASH']")) {
|
||||||
cy.get("[data-testid='CLOSE_SPLASH']").click();
|
cy.get("[data-testid='CLOSE_SPLASH']").click();
|
||||||
|
@ -36,7 +36,6 @@ import {
|
|||||||
import { caseInsensitiveSearch } from 'utils/search';
|
import { caseInsensitiveSearch } from 'utils/search';
|
||||||
import { IServiceAccount } from 'interfaces/service-account';
|
import { IServiceAccount } from 'interfaces/service-account';
|
||||||
import { MultipleRoleSelect } from 'component/common/MultipleRoleSelect/MultipleRoleSelect';
|
import { MultipleRoleSelect } from 'component/common/MultipleRoleSelect/MultipleRoleSelect';
|
||||||
import { RoleSelect } from 'component/common/RoleSelect/RoleSelect';
|
|
||||||
|
|
||||||
const StyledForm = styled('form')(() => ({
|
const StyledForm = styled('form')(() => ({
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
|
@ -61,7 +61,6 @@ export type UiFlags = {
|
|||||||
customRootRolesKillSwitch?: boolean;
|
customRootRolesKillSwitch?: boolean;
|
||||||
strategyVariant?: boolean;
|
strategyVariant?: boolean;
|
||||||
lastSeenByEnvironment?: boolean;
|
lastSeenByEnvironment?: boolean;
|
||||||
multipleRoles?: boolean;
|
|
||||||
featureNamingPattern?: boolean;
|
featureNamingPattern?: boolean;
|
||||||
doraMetrics?: boolean;
|
doraMetrics?: boolean;
|
||||||
variantTypeNumber?: boolean;
|
variantTypeNumber?: boolean;
|
||||||
|
Loading…
Reference in New Issue
Block a user