Skip to content

Commit

Permalink
tests for Complete PLI
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-tavares committed Jul 21, 2023
1 parent 6455e2f commit 4b663d3
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
Expand Up @@ -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');
});
}
}
);
Expand Up @@ -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<LoadedRoleAndUser> => {
return (await roleAndUserLoaderPromise).load(name);
},
Expand Down

0 comments on commit 4b663d3

Please sign in to comment.