mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixin tests harder
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
d0078519cb
commit
303160161c
3 files changed
+11
-11
No files matched your search
@@ -80,7 +80,7 @@ export async function appStart() {
|
||||
export async function clickWhatsNew(app: Application) {
|
||||
await app.client.waitUntilTextExists("h1", "What's new?");
|
||||
await app.client.click("button.primary");
|
||||
await app.client.waitUntilTextExists("h2", "default");
|
||||
await app.client.waitUntilTextExists("h5", "Clusters");
|
||||
}
|
||||
|
||||
export async function clickWelcomeNotification(app: Application) {
|
||||
@@ -89,7 +89,7 @@ export async function clickWelcomeNotification(app: Application) {
|
||||
if (itemsText === "0 item") {
|
||||
// welcome notification should be present, dismiss it
|
||||
await app.client.waitUntilTextExists("div.message", "Welcome!");
|
||||
await app.client.click("i.Icon.close");
|
||||
await app.client.click(".notification i.Icon.close");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user