Search for element using getByTestId

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev committed 2022-12-02 11:27:28 +03:00
1 parent a49c947e51
commit 5921098bde
2 files changed
+3 -2

No files matched your search

+2 -2
View File
@@ -188,7 +188,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.click(".MenuItem >> text=Logs");
await frame.waitForSelector(".Dock.isOpen");
const logLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
const logLine = await frame.getByTestId("log-row-0");
expect(logLine).toHaveStyle({
"white-space": "nowrap",
@@ -196,7 +196,7 @@ describeIf(minikubeReady(TEST_NAMESPACE))("Minikube based tests", () => {
await frame.click("[data-testid='log-controls'] .wrap-logs");
const wrappedLogLine = await frame.waitForSelector("[data-testid=pod-log-list] [data-index='0']");
const wrappedLogLine = await frame.getByTestId("log-row-0");
expect(wrappedLogLine).toHaveStyle({
"white-space": "normal",