mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix page tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
dccdcd6b63
commit
a8ea8ae78e
@ -43,10 +43,6 @@ describe("Lens cluster pages", () => {
|
|||||||
const ready = minikubeReady(TEST_NAMESPACE);
|
const ready = minikubeReady(TEST_NAMESPACE);
|
||||||
let clusterAdded = false;
|
let clusterAdded = false;
|
||||||
|
|
||||||
afterEach(() => {
|
|
||||||
clusterAdded = false;
|
|
||||||
});
|
|
||||||
|
|
||||||
utils.describeIf(ready)("test common pages", () => {
|
utils.describeIf(ready)("test common pages", () => {
|
||||||
const addCluster = async () => {
|
const addCluster = async () => {
|
||||||
await waitForMinikubeDashboard(app);
|
await waitForMinikubeDashboard(app);
|
||||||
@ -60,7 +56,10 @@ describe("Lens cluster pages", () => {
|
|||||||
clusterAdded = true;
|
clusterAdded = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
const tearDown = () => utils.tearDown(app);
|
const tearDown = async () => {
|
||||||
|
await utils.tearDown(app);
|
||||||
|
clusterAdded = false;
|
||||||
|
};
|
||||||
|
|
||||||
describe("cluster add", () => {
|
describe("cluster add", () => {
|
||||||
utils.beforeAllWrapped(async () => {
|
utils.beforeAllWrapped(async () => {
|
||||||
@ -84,8 +83,8 @@ describe("Lens cluster pages", () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
describe("cluster pages", () => {
|
describe("cluster pages", () => {
|
||||||
utils.beforeEachWrapped(appStartAddCluster);
|
utils.beforeAllWrapped(appStartAddCluster);
|
||||||
utils.afterEachWrapped(tearDown);
|
utils.afterAllWrapped(tearDown);
|
||||||
|
|
||||||
const tests: {
|
const tests: {
|
||||||
drawer?: string
|
drawer?: string
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user