mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Opening cluster list by data-testId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
3ec08eaf24
commit
f8d2892a74
5 files changed
+8
-5
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in new issue
Block a user