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 20, 2024
1 parent 9e73a6e commit e9da91f
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion cypress/e2e/awx/administration/topology-view.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,22 @@ import { Organization } from '../../../../frontend/awx/interfaces/Organization';
import { Settings } from '../../../../frontend/awx/interfaces/Settings';
import { randomString } from '../../../../framework/utils/random-string';
import { awxAPI } from '../../../support/formatApiPathForAwx';
import { randomE2Ename } from '../../../support/utils';

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

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

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

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

beforeEach(() => {
Expand Down Expand Up @@ -55,7 +65,7 @@ describe('Topology view', () => {
});

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

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

0 comments on commit e9da91f

Please sign in to comment.