Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit a0e44a3

Browse files
committed
fix(plugins/plugin-kubectl): kubectl get-all-namespaces test is unreliable
Fixes #6561
1 parent 23d6e75 commit a0e44a3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

plugins/plugin-kubectl/src/test/k8s2/get-all-namespaces.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ describe(`kubectl get all-namespaces ${process.env.MOCHA_RUN_TARGET || ''}`, fun
6969
const res = await CLI.command(`${kubectl} get pods ${allNamespace}`, this.app)
7070
const { app, count } = res
7171

72+
const asListButton = await this.app.client.$(Selectors.TABLE_SHOW_AS_LIST(count))
73+
await asListButton.waitForExist({ timeout: CLI.waitTimeout })
74+
await asListButton.click()
75+
7276
await this.app.client.$(Selectors.TABLE_TITLE(count)).then(_ => _.waitForExist())
7377

7478
const actualTitle = await this.app.client.$(Selectors.TABLE_TITLE(count)).then(_ => _.getText())

0 commit comments

Comments
 (0)