Skip to content

Commit

Permalink
Get rid of global org
Browse files Browse the repository at this point in the history
  • Loading branch information
MilanPospisil committed Jun 21, 2024
1 parent c34d884 commit b370554
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion cypress/e2e/awx/administration/topology-view.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,24 @@ import { Organization } from '../../../../frontend/awx/interfaces/Organization';
import { Settings } from '../../../../frontend/awx/interfaces/Settings';
import { AwxUser } from '../../../../frontend/awx/interfaces/User';
import { awxAPI } from '../../../support/formatApiPathForAwx';
import { randomE2Ename } from '../../../support/utils';

describe('Topology view', () => {
let user: AwxUser;
let organization: Organization;


before(() => {
cy.login();

cy.createAwxOrganization(randomE2Ename()).then((org) => {
organization = org;
});
});

after(() => {
cy.deleteAwxOrganization(organization);
});

beforeEach(() => {
cy.intercept({ method: 'GET', url: awxAPI`/mesh_visualizer/` }).as('getMeshVisualizer');
Expand Down Expand Up @@ -51,7 +66,7 @@ describe('Topology view', () => {
});

it('does not show Topology View in sidebar for non admins', function () {
cy.createAwxUser(this.globalAwxOrganization as Organization).then((awxUser) => {
cy.createAwxUser(organization).then((awxUser) => {
user = awxUser;

cy.awxLoginTestUser(user.username, 'pw');
Expand Down

0 comments on commit b370554

Please sign in to comment.