Skip to content

Commit

Permalink
Adapt test to container in Kaoto
Browse files Browse the repository at this point in the history
- 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 KaotoIO#631

Signed-off-by: Aurélien Pupier <[email protected]>
  • Loading branch information
apupier committed Aug 9, 2024
1 parent 300657e commit a8e655f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion it-tests/PropertyPanelLoading.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a8e655f

Please sign in to comment.