Add kubesync shortcut to catalog

- Add ability to register new app preference groupings

- Switch all lens preferences to be retreived from the registry

- Dynamically render preference's navigation based on the existance of
  items in each grouping

- Add ability for settings to declare that they shouldn't be rendered

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2021-07-16 09:23:02 -04:00
1 parent eef5dd5f9c
commit 207f0dfd62
18 files changed
+621 -379

No files matched your search

+8 -9
View File
@@ -60,14 +60,13 @@ describe("Lens integration tests", () => {
await app.client.waitUntilTextExists("[data-testid=application-header]", "Application");
});
it("shows all tabs and their contents", async () => {
await app.client.click("[data-testid=application-tab]");
await app.client.click("[data-testid=proxy-tab]");
await app.client.waitUntilTextExists("[data-testid=proxy-header]", "Proxy");
await app.client.click("[data-testid=kube-tab]");
await app.client.waitUntilTextExists("[data-testid=kubernetes-header]", "Kubernetes");
await app.client.click("[data-testid=telemetry-tab]");
await app.client.waitUntilTextExists("[data-testid=telemetry-header]", "Telemetry");
it.each([
["application", "Application"],
["proxy", "Proxy"],
["kubernetes", "Kubernetes"],
])("Can click the %s tab and see the %s header", async (tab, header) => {
await app.client.click(`[data-testid=${tab}-tab]`);
await app.client.waitUntilTextExists(`[data-testid=${tab}-header]`, header);
});
it("ensures helm repos", async () => {
@@ -77,7 +76,7 @@ describe("Lens integration tests", () => {
fail("Lens failed to add any repositories");
}
await app.client.click("[data-testid=kube-tab]");
await app.client.click("[data-testid=kubernetes-tab]");
await app.client.waitUntilTextExists("div.repos .repoName", repos[0].name); // wait for the helm-cli to fetch the repo(s)
await app.client.click("#HelmRepoSelect"); // click the repo select to activate the drop-down
await app.client.waitUntilTextExists("div.Select__option", ""); // wait for at least one option to appear (any text)