mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
get selectors right for integration test
Signed-off-by: Jim Ehrismann <jehrismann@miranits.com>
This commit is contained in:
parent
1a15a7a672
commit
6a1bc35017
@ -51,12 +51,12 @@ export async function clickWhatsNew(app: Application) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function clickWelcomeNotification(app: Application) {
|
export async function clickWelcomeNotification(app: Application) {
|
||||||
const itemsText = await app.client.$("ItemListLayout.info-panel").getText();
|
const itemsText = await app.client.$("div.info-panel").getText();
|
||||||
|
|
||||||
if (itemsText === "0 item") {
|
if (itemsText === "0 item") {
|
||||||
// welcome notification should be present, dismiss it
|
// welcome notification should be present, dismiss it
|
||||||
await app.client.waitUntilTextExists("Notifications.message", "Welcome!");
|
await app.client.waitUntilTextExists("div.message", "Welcome!");
|
||||||
await app.client.click("Notifications.Icon");
|
await app.client.click("i.Icon.close");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user