Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix topology view tests #2544

Merged
merged 5 commits into from
Jun 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions cypress/e2e/awx/administration/topology-view.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,23 @@ 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 +65,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 All @@ -77,8 +91,8 @@ describe('Topology view', () => {
});
});
});
// FLAKY_06_13_2024
ZitaNemeckova marked this conversation as resolved.
Show resolved Hide resolved
it.skip('will allow the user to select node and delete it', () => {

it('will allow the user to select node and delete it', () => {
cy.requestGet<Settings>(awxAPI`/settings/system/`).then((data) => {
if (!data?.IS_K8S) {
cy.log('TEST SKIPPED | IS_K8S: False');
Expand Down
Loading