Skip to content

Commit 2a77e36

Browse files
authored
fix(ci): ingress resource visibility check in topology tests (#4774)
Signed-off-by: Ihor Mykhno <imykhno@redhat.com>
1 parent e35bc61 commit 2a77e36

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e-tests/playwright/e2e/plugins/topology/topology.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,9 @@ async function testIngressResources(page: Page, uiHelper: UIhelper) {
119119
.first(),
120120
).toBeVisible();
121121
// Verify code block is visible (pre element containing configuration)
122-
await expect(
123-
page.getByText(/apiVersion:|kind:|metadata:/).first(),
124-
).toBeVisible();
122+
const ingressCode = page.getByTestId("ingress-list").locator("code").first();
123+
await expect(ingressCode).toBeVisible();
124+
await expect(ingressCode).toContainText("name: topology-test-service");
125125
}
126126

127127
async function testRouteResources(page: Page, uiHelper: UIhelper) {

0 commit comments

Comments
 (0)