mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Search for element using getByTestId
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
a49c947e51
commit
5921098bde
2 files changed
+3
-2
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user