mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
move itif and describeif into utils
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
4ab4ccfc8c
commit
6c63fb26f6
2 files changed
+10
-6
No files matched your search
@@ -8,10 +8,6 @@ import { Application } from "spectron";
|
||||
import * as util from "../helpers/utils";
|
||||
import { spawnSync } from "child_process";
|
||||
|
||||
// eslint-disable-next-line unused-imports/no-unused-vars-ts
|
||||
const itif = (condition: boolean) => condition ? it : it.skip;
|
||||
const describeif = (condition: boolean) => condition ? describe : describe.skip;
|
||||
|
||||
jest.setTimeout(60000);
|
||||
|
||||
// FIXME (!): improve / simplify all css-selectors + use [data-test-id="some-id"] (already used in some tests below)
|
||||
@@ -107,7 +103,7 @@ describe("Lens integration tests", () => {
|
||||
});
|
||||
});
|
||||
|
||||
describeif(ready)("workspaces", () => {
|
||||
util.describeIf(ready)("workspaces", () => {
|
||||
beforeAll(appStart, 20000);
|
||||
|
||||
afterAll(async () => {
|
||||
@@ -171,7 +167,7 @@ describe("Lens integration tests", () => {
|
||||
await app.client.waitUntilTextExists("span.link-text", "Cluster");
|
||||
};
|
||||
|
||||
describeif(ready)("cluster tests", () => {
|
||||
util.describeIf(ready)("cluster tests", () => {
|
||||
let clusterAdded = false;
|
||||
|
||||
const addCluster = async () => {
|
||||
|
||||
Reference in new issue
Block a user