Use getByText from frame selector

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-12-02 13:27:50 +03:00
1 parent 8566ae8e9e
commit 4fbaa7f43f
1 file changed
+3 -1
+3 -1
View File
@@ -189,8 +189,10 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.waitForSelector(".Dock.isOpen");
const logLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
// @ts-ignore
const lineContents = logLine.getByText("text");
expect(logLine.asElement()).toHaveStyle({ "white-space": "nowrap" });
expect(lineContents).toHaveStyle({ "white-space": "nowrap" });
await frame.click("[data-testid='log-controls'] .wrap-logs");