Opening cluster list by data-testId

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2021-06-18 16:36:50 +03:00
1 parent 3ec08eaf24
commit f8d2892a74
5 files changed
+8 -5

No files matched your search

+2 -1
View File
@@ -45,7 +45,8 @@ describe("Lens cluster pages", () => {
utils.describeIf(ready)("test common pages", () => {
let clusterAdded = false;
const addCluster = async () => {
await app.client.waitForExist("#hotbarIcon-catalog-entity");
await app.client.waitForEnabled("[data-testId='browseClustersButton']");
await app.client.click("[data-testId='browseClustersButton']");
await waitForMinikubeDashboard(app);
await app.client.click('a[href="/nodes"]');
await app.client.waitUntilTextExists("div.TableCell", "Ready");
+2 -2
View File
@@ -99,8 +99,8 @@ export async function appStart() {
}
export async function showCatalog(app: Application) {
await app.client.waitForExist("#hotbarIcon-catalog-entity");
await app.client.click("#hotbarIcon-catalog-entity");
await app.client.waitForExist("#hotbarIcon-catalog-entity .Icon");
await app.client.click("#hotbarIcon-catalog-entity .Icon");
}
type AsyncPidGetter = () => Promise<number>;