-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(Settings): Use default Settings from Kaoto #709
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,8 @@ describe('User Settings', function () { | |
|
||
const locators = { | ||
TimerComponent: { | ||
timer: By.xpath(`//\*[name()='g' and starts-with(@data-id,'timer')]`), | ||
label: By.xpath(`//\*[name()='g' and starts-with(@class,'pf-topology__node__label')]`) | ||
timer: `g[data-id^='timer'][data-kind='node']`, | ||
label: `.custom-node__label`, | ||
} | ||
} | ||
|
||
|
@@ -64,7 +64,7 @@ describe('User Settings', function () { | |
it(`Check 'id' Node Label is used instead of default 'description'`, async function () { | ||
this.timeout(60_000); | ||
|
||
const timer = await driver.findElement(locators.TimerComponent.timer).findElement(locators.TimerComponent.label); | ||
const timer = await driver.findElement(By.css(`${locators.TimerComponent.timer} ${locators.TimerComponent.label}`)); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Semantically, this is not exactly the same as before. Before, we were locating a node and from that point, we searched for another one within. Now, we're targeting the label that is inside of the node. The issue is that for some reason, topology now creates invisible nodes, potentially as references inside of the groups, so it means the test library finds 2 nodes, instead of one, and the first one is empty, therefore, the location fails. |
||
const label = await timer.getText(); | ||
|
||
expect(label.split('\n')).to.contains('timerID'); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This selector changed because there's no more topology label but rather a standard text.