mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix integration tests not deselecting dropdown (#917)
* fix integration tests not deselecting dropdown Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
e84082dc6d
commit
d09a118b0c
@ -20,12 +20,13 @@ describe("app start", () => {
|
|||||||
await app.client.click("div.Select__control")
|
await app.client.click("div.Select__control")
|
||||||
await app.client.waitUntilTextExists("div", "minikube")
|
await app.client.waitUntilTextExists("div", "minikube")
|
||||||
await app.client.click("div.minikube")
|
await app.client.click("div.minikube")
|
||||||
|
await app.client.click("div.Select__control")
|
||||||
await app.client.click("button.primary")
|
await app.client.click("button.primary")
|
||||||
}
|
}
|
||||||
|
|
||||||
const waitForMinikubeDashboard = async (app: Application) => {
|
const waitForMinikubeDashboard = async (app: Application) => {
|
||||||
await app.client.waitUntilTextExists("pre.kube-auth-out", "Authentication proxy started")
|
await app.client.waitUntilTextExists("pre.kube-auth-out", "Authentication proxy started")
|
||||||
let windowCount = await app.client.getWindowCount()
|
await app.client.getWindowCount()
|
||||||
await app.client.waitForExist(`iframe[name="minikube"]`)
|
await app.client.waitForExist(`iframe[name="minikube"]`)
|
||||||
await app.client.frame("minikube")
|
await app.client.frame("minikube")
|
||||||
await app.client.waitUntilTextExists("span.link-text", "Cluster")
|
await app.client.waitUntilTextExists("span.link-text", "Cluster")
|
||||||
@ -35,10 +36,8 @@ describe("app start", () => {
|
|||||||
app = util.setup()
|
app = util.setup()
|
||||||
await app.start()
|
await app.start()
|
||||||
await app.client.waitUntilWindowLoaded()
|
await app.client.waitUntilWindowLoaded()
|
||||||
let windowCount = await app.client.getWindowCount()
|
// Wait for splash screen to be closed
|
||||||
while (windowCount > 1) { // Wait for splash screen to be closed
|
while (await app.client.getWindowCount() > 1);
|
||||||
windowCount = await app.client.getWindowCount()
|
|
||||||
}
|
|
||||||
await app.client.windowByIndex(0)
|
await app.client.windowByIndex(0)
|
||||||
await app.client.waitUntilWindowLoaded()
|
await app.client.waitUntilWindowLoaded()
|
||||||
}, 20000)
|
}, 20000)
|
||||||
@ -48,7 +47,7 @@ describe("app start", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('allows to add a cluster', async () => {
|
it('allows to add a cluster', async () => {
|
||||||
const status = spawnSync("minikube status", {shell: true})
|
const status = spawnSync("minikube status", { shell: true })
|
||||||
if (status.status !== 0) {
|
if (status.status !== 0) {
|
||||||
console.warn("minikube not running, skipping test")
|
console.warn("minikube not running, skipping test")
|
||||||
return
|
return
|
||||||
@ -61,7 +60,7 @@ describe("app start", () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
it('allows to create a pod', async () => {
|
it('allows to create a pod', async () => {
|
||||||
const status = spawnSync("minikube status", {shell: true})
|
const status = spawnSync("minikube status", { shell: true })
|
||||||
if (status.status !== 0) {
|
if (status.status !== 0) {
|
||||||
console.warn("minikube not running, skipping test")
|
console.warn("minikube not running, skipping test")
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user