mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Remove integration test touching previously bundled code
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
4383bbdc11
commit
104e4059bc
@ -76,60 +76,6 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
|
|||||||
10 * 60 * 1000,
|
10 * 60 * 1000,
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
|
||||||
"show logs and highlight the log search entries",
|
|
||||||
async () => {
|
|
||||||
await navigateToPods(frame);
|
|
||||||
|
|
||||||
const namespacesSelector = await frame.waitForSelector(
|
|
||||||
".NamespaceSelect",
|
|
||||||
);
|
|
||||||
|
|
||||||
await namespacesSelector.click();
|
|
||||||
await namespacesSelector.type("kube-system");
|
|
||||||
await namespacesSelector.press("Enter");
|
|
||||||
await namespacesSelector.click();
|
|
||||||
|
|
||||||
const kubeApiServerRow = await frame.waitForSelector(
|
|
||||||
"div.TableCell >> text=kube-apiserver",
|
|
||||||
);
|
|
||||||
|
|
||||||
await kubeApiServerRow.click();
|
|
||||||
await frame.waitForSelector(".Drawer", { state: "visible" });
|
|
||||||
|
|
||||||
const showPodLogsIcon = await frame.waitForSelector(
|
|
||||||
".Drawer .drawer-title .Icon >> text=subject",
|
|
||||||
);
|
|
||||||
|
|
||||||
showPodLogsIcon.click();
|
|
||||||
|
|
||||||
// Check if controls are available
|
|
||||||
await frame.waitForSelector(".Dock.isOpen");
|
|
||||||
await frame.waitForSelector(".LogList .VirtualList");
|
|
||||||
await frame.waitForSelector(".LogResourceSelector");
|
|
||||||
|
|
||||||
const logSearchInput = await frame.waitForSelector(
|
|
||||||
".LogSearch .SearchInput input",
|
|
||||||
);
|
|
||||||
|
|
||||||
await logSearchInput.type(":");
|
|
||||||
await frame.waitForSelector(".LogList .list span.active");
|
|
||||||
|
|
||||||
const showTimestampsButton = await frame.waitForSelector(
|
|
||||||
"[data-testid='log-controls'] .show-timestamps",
|
|
||||||
);
|
|
||||||
|
|
||||||
await showTimestampsButton.click();
|
|
||||||
|
|
||||||
const showPreviousButton = await frame.waitForSelector(
|
|
||||||
"[data-testid='log-controls'] .show-previous",
|
|
||||||
);
|
|
||||||
|
|
||||||
await showPreviousButton.click();
|
|
||||||
},
|
|
||||||
10 * 60 * 1000,
|
|
||||||
);
|
|
||||||
|
|
||||||
it(
|
it(
|
||||||
"should show the default namespaces",
|
"should show the default namespaces",
|
||||||
async () => {
|
async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user