1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Navigate to pods at the start of the test

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev 2022-11-29 11:01:09 +03:00
parent fb2b3ff8ea
commit b88a9c3f13

View File

@ -139,7 +139,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
it( it(
"should create a pod with logs and wrap log lines", "should create a pod with logs and wrap log lines",
async () => { async () => {
await navigateToNamespaces(frame); await navigateToPods(frame);
await frame.waitForSelector("div.TableCell >> text='default'"); await frame.waitForSelector("div.TableCell >> text='default'");
await frame.click(".Icon.new-dock-tab"); await frame.click(".Icon.new-dock-tab");
@ -184,9 +184,6 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await monacoEditor.press("Enter", { delay: 10 }); await monacoEditor.press("Enter", { delay: 10 });
await frame.click(".Dock .Button >> text='Create'"); await frame.click(".Dock .Button >> text='Create'");
await navigateToPods(frame);
await frame.waitForSelector(`.TableCell >> text=${testPodName}`); await frame.waitForSelector(`.TableCell >> text=${testPodName}`);
await frame.click(".TableRow .TableCell.menu"); await frame.click(".TableRow .TableCell.menu");
await frame.click(".MenuItem >> text=Logs"); await frame.click(".MenuItem >> text=Logs");