Policy Details/Query Details: No hover state if policy/query is not editable by RBAC (#3368)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
* No hover state for query or policy details if RBAC does not allow editing
|
||||
@@ -128,6 +128,7 @@ describe(
|
||||
cy.findByRole("button", { name: /save query pack/i }).click();
|
||||
|
||||
cy.visit("/packs/manage");
|
||||
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.get(".fleet-checkbox__input").check({ force: true });
|
||||
|
||||
|
||||
@@ -216,6 +216,8 @@ describe(
|
||||
// On the Settings pages, they should…
|
||||
// See the “Teams” navigation item and access the Settings - Teams page
|
||||
cy.visit("/settings/organization");
|
||||
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.get(".react-tabs").within(() => {
|
||||
cy.findByText(/teams/i).click();
|
||||
});
|
||||
@@ -236,6 +238,8 @@ describe(
|
||||
// On the Profile page, they should…
|
||||
// See Global in the Team section and Admin in the Role section
|
||||
cy.visit("/profile");
|
||||
cy.wait(1000); // eslint-disable-line cypress/no-unnecessary-waiting
|
||||
|
||||
cy.findByText(/team/i)
|
||||
.next()
|
||||
.contains(/global/i);
|
||||
|
||||
@@ -46,16 +46,11 @@
|
||||
margin: $pad-large 0;
|
||||
line-height: 2rem;
|
||||
height: 2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.policy-form__policy-resolve,
|
||||
.resolve-text-wrapper {
|
||||
margin-top: $pad-large;
|
||||
}
|
||||
.policy-form__policy-description:not(textarea),
|
||||
.policy-form__policy-resolution-button:not(textarea) {
|
||||
cursor: pointer;
|
||||
}
|
||||
#policy-description {
|
||||
height: 38px;
|
||||
}
|
||||
|
||||
@@ -46,11 +46,9 @@
|
||||
margin-top: $pad-large;
|
||||
line-height: 2rem;
|
||||
height: 2rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
.query-form__query-description:not(textarea) {
|
||||
margin: 0.25rem 0 1rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
textarea.query-form__query-description {
|
||||
margin-top: 0.8125rem;
|
||||
|
||||
Reference in New Issue
Block a user