Add clustering nodes tests (#3008)
This commit is contained in:
parent
988aefd7d3
commit
e556db69fe
2 changed files with 24 additions and 0 deletions
|
@ -680,8 +680,16 @@ describe("Clients test", () => {
|
||||||
it("Clustering", () => {
|
it("Clustering", () => {
|
||||||
advancedTab.expandClusterNode();
|
advancedTab.expandClusterNode();
|
||||||
|
|
||||||
|
advancedTab.checkEmptyClusterNode();
|
||||||
|
|
||||||
advancedTab.registerNodeManually().fillHost("localhost").saveHost();
|
advancedTab.registerNodeManually().fillHost("localhost").saveHost();
|
||||||
advancedTab.checkTestClusterAvailability(true);
|
advancedTab.checkTestClusterAvailability(true);
|
||||||
|
advancedTab.deleteClusterNode();
|
||||||
|
commonPage.modalUtils().confirmModal();
|
||||||
|
commonPage
|
||||||
|
.masthead()
|
||||||
|
.checkNotificationMessage("Node successfully removed");
|
||||||
|
advancedTab.checkEmptyClusterNode();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("Fine grain OpenID connect configuration", () => {
|
it("Fine grain OpenID connect configuration", () => {
|
||||||
|
|
|
@ -9,7 +9,12 @@ export default class AdvancedTab extends CommonPage {
|
||||||
private clusterNodesExpandBtn =
|
private clusterNodesExpandBtn =
|
||||||
".pf-c-expandable-section .pf-c-expandable-section__toggle";
|
".pf-c-expandable-section .pf-c-expandable-section__toggle";
|
||||||
private testClusterAvailability = "#testClusterAvailability";
|
private testClusterAvailability = "#testClusterAvailability";
|
||||||
|
private emptyClusterElement = "empty-state";
|
||||||
private registerNodeManuallyBtn = "no-nodes-registered-empty-action";
|
private registerNodeManuallyBtn = "no-nodes-registered-empty-action";
|
||||||
|
private deleteClusterNodeDrpDwn =
|
||||||
|
'[aria-label="registeredClusterNodes"] [aria-label="Actions"]';
|
||||||
|
private deleteClusterNodeBtn =
|
||||||
|
'[aria-label="registeredClusterNodes"] [role="menu"] button';
|
||||||
private nodeHostInput = "#nodeHost";
|
private nodeHostInput = "#nodeHost";
|
||||||
private addNodeConfirmBtn = "#add-node-confirm";
|
private addNodeConfirmBtn = "#add-node-confirm";
|
||||||
|
|
||||||
|
@ -63,11 +68,22 @@ export default class AdvancedTab extends CommonPage {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
checkEmptyClusterNode() {
|
||||||
|
cy.findByTestId(this.emptyClusterElement).should("exist");
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
registerNodeManually() {
|
registerNodeManually() {
|
||||||
cy.findByTestId(this.registerNodeManuallyBtn).click();
|
cy.findByTestId(this.registerNodeManuallyBtn).click();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
deleteClusterNode() {
|
||||||
|
cy.get(this.deleteClusterNodeDrpDwn).click();
|
||||||
|
cy.get(this.deleteClusterNodeBtn).click();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
fillHost(host: string) {
|
fillHost(host: string) {
|
||||||
cy.get(this.nodeHostInput).type(host);
|
cy.get(this.nodeHostInput).type(host);
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in a new issue