-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added in tests to validate that the Harvester dashboard can be reache…
…d from Rancher, and fixed some missing semicolons. changed timeouts to use constants instead of hard coded timeouts changed back dashboard pageobject to be the way it was and added in a different virtualizationDashboard pageobject Added in a log for outputting the product and clustername
- Loading branch information
1 parent
0738efb
commit 0cf7b78
Showing
5 changed files
with
68 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
export default class VirtualizationDashboard { | ||
|
||
private clusterName = '.cluster-name'; | ||
private productName = '.product-name'; | ||
|
||
public validateClusterName() { | ||
cy.get(this.clusterName).should('exist').then(() => { | ||
cy.log('Cluster Name Exists'); | ||
cy.get(this.clusterName).then((elem) => { | ||
const textValue = elem.text(); | ||
cy.log('Cluster Name is ' + textValue) | ||
}); | ||
}); | ||
} | ||
|
||
public validateProductName() { | ||
cy.get(this.productName).should('exist').then(() => { | ||
cy.log('Product Name Exists'); | ||
cy.get(this.productName).then((elem) => { | ||
const textValue = elem.text(); | ||
cy.log('Product Name is ' + textValue) | ||
}); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters