-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] draft typeAttribution.spec.ts #25
base: kie-issues-946-part-3-main
Are you sure you want to change the base?
[WIP] draft typeAttribution.spec.ts #25
Conversation
b818c5c
to
af805a3
Compare
test.only("should change Input Data data type", async ({ page, palette, nodes }) => { | ||
await palette.dragNewNode({ type: NodeType.INPUT_DATA, targetPosition: { x: 100, y: 100 } }); | ||
|
||
await nodes.hover({ name: DefaultNodeName.INPUT_DATA }); | ||
await nodes.get({ name: DefaultNodeName.INPUT_DATA }).getByLabel(DataType.Undefined).click(); | ||
await page.pause(); | ||
await nodes | ||
.get({ name: DefaultNodeName.INPUT_DATA }) | ||
.getByRole("option") | ||
.getByText(DataType.Number, { exact: true }) | ||
.click(); | ||
|
||
await page.pause(); | ||
|
||
await nodes.hover({ name: DefaultNodeName.INPUT_DATA }); | ||
await page.pause(); | ||
}); |
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.
I am struggling to select the dropdown option, as we have dropdown implemented using ul
and li
instead of select
and option
, while playwright has a native support for the later one.
On the line 36
we stopped the debugger after click on the <Undefined>
, so far so good, the dropdown was shown.
Then if we resume the test execution, and we check in the debug console where the next click was executed, it is in some inappropriate location, see the red circle:
af805a3
to
b31d9db
Compare
Currently, the tests in unstable on
|
b31d9db
to
ed3c4c0
Compare
No description provided.