Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { checkErrors } from '../../support';
import { detailsPage } from '../../views/details-page';

describe('Cluster Settings when control plane is managed', () => {
before(() => {
Expand All @@ -21,5 +22,26 @@ describe('Cluster Settings when control plane is managed', () => {
cy.byTestID('cv-update-button').should('not.exist');
cy.byTestID('cv-upstream-server-url').should('not.exist');
cy.byTestID('cv-autoscaler').should('not.exist');
cy.contains('logged in as a temporary administrative user').should('not.exist');
cy.contains('allow others to log in').should('not.exist');
// check on Configuration page
detailsPage.selectTab('Configuration');
cy.get('.loading-box__loaded').should('exist');
const configName = [
'APIServer',
'Authentication',
'DNS',
'FeatureGate',
'Networking',
'OAuth',
'Proxy',
'Scheduler',
];
configName.forEach(function (name) {
cy.get(`[href="/k8s/cluster/config.openshift.io~v1~${name}/cluster"]`).should('not.exist');
});
// check on Overview page
cy.clickNavLink(['Home', 'Overview']);
cy.byTestID('Control Plane').should('not.exist');
});
});