From a8e655f3c4a68ef87d2a43e3acc5e97cac74b84e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 9 Aug 2024 10:35:30 +0200 Subject: [PATCH] Adapt test to container in Kaoto MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - keep xpath selector `//*[name()='g' and starts-with(@data-testid,'custom-node__when')]` until we have a release of Kaoto with new changes - requires to 2 div level because the foreignObject and the first div are not clickable Element fixes #631 Signed-off-by: Aurélien Pupier --- it-tests/PropertyPanelLoading.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it-tests/PropertyPanelLoading.test.ts b/it-tests/PropertyPanelLoading.test.ts index 908c4668..07105368 100644 --- a/it-tests/PropertyPanelLoading.test.ts +++ b/it-tests/PropertyPanelLoading.test.ts @@ -29,7 +29,7 @@ describe('Property panel loading test', function () { driver, true )).kaotoWebview; - const stepWhenXpath = By.xpath(`//\*[name()='g' and starts-with(@data-testid,'custom-node__when')]`) + const stepWhenXpath = By.xpath(`//*[name()='g' and starts-with(@data-testid,'custom-node__when')]|//*[name()='foreignObject' and @data-nodelabel='when']/div/div`) await driver.wait(until.elementLocated(stepWhenXpath), 5_000); await (await driver.findElement(stepWhenXpath)).click(); await driver.wait(