diff --git a/x-pack/test_serverless/functional/test_suites/security/cypress/e2e/endpoint_mangement/feature_access/complete.cy.ts b/x-pack/test_serverless/functional/test_suites/security/cypress/e2e/endpoint_mangement/feature_access/complete.cy.ts index 1e5e5f8e650cf8..cd515406b9726d 100644 --- a/x-pack/test_serverless/functional/test_suites/security/cypress/e2e/endpoint_mangement/feature_access/complete.cy.ts +++ b/x-pack/test_serverless/functional/test_suites/security/cypress/e2e/endpoint_mangement/feature_access/complete.cy.ts @@ -5,6 +5,28 @@ * 2.0. */ -describe('Security Complete PLI', () => { - // FIXME:PT implement -}); +import { login } from '../../../tasks/login'; +import { getEndpointManagementPageList } from '../../../lib'; + +describe( + 'Security Complete PLI', + { + env: { + ftrConfig: { productTypes: [{ product_line: 'security', product_tier: 'complete' }] }, + }, + }, + () => { + const pages = getEndpointManagementPageList(); + + beforeEach(() => { + login(); + }); + + for (const { url, title } of pages) { + it(`should not allow access to ${title}`, () => { + cy.visit(url); + cy.getByTestSubj('noPrivilegesPage').should('exist'); + }); + } + } +); diff --git a/x-pack/test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks.ts b/x-pack/test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks.ts index 02a453f30b4e7a..e94f608134a3f5 100644 --- a/x-pack/test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks.ts +++ b/x-pack/test_serverless/functional/test_suites/security/cypress/support/setup_data_loader_tasks.ts @@ -29,6 +29,10 @@ export const setupDataLoaderTasks = ( ); on('task', { + /** + * Loads a user/role into Kibana. Used from `login()` task. + * @param name + */ loadUserAndRole: async ({ name }: LoadUserAndRoleCyTaskOptions): Promise => { return (await roleAndUserLoaderPromise).load(name); },