-
Notifications
You must be signed in to change notification settings - Fork 191
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
kie-issues#946: Action plan - Exploratory phase of the strategy for implementing the E2E test suite for the new DMN Editor - Part 3 #2211
Conversation
* Update addAssociationWaypoint.spec.ts * simplify edges fixture * report webkit issue and skip current test on it * authority requirement * information requirement * remove .only() * knowledge requirement
* Split move and add waypoint tests * refactor edges fixtures
* Introduce delete[edge]Waypoint.spec.ts * finish deleteEdgeWaypoint.spec.ts * fix tests after merging with feature branch * test delete waypoint without its movement * Update packages/dmn-editor/tests/e2e/drgRequirements/deleteAuthorityRequirementWaypoint.spec.ts Co-authored-by: Luiz João Motta <[email protected]> * Update packages/dmn-editor/tests/e2e/drgRequirements/deleteAuthorityRequirementWaypoint.spec.ts Co-authored-by: Luiz João Motta <[email protected]> * do not use new line in given phase * test names simplified and unified * introduce addWaypoint2 fixture * addAssociationWaypoint * use new 'addWaypoint' fixture --------- Co-authored-by: Luiz João Motta <[email protected]>
* initialize spec file * invalid edge tests * remove not needed test * drop 'From' from test describe * fix GROUP tests * fix test describe - remove From * add dim tests * refactor dimmed class assertion * incorporate review feedback * remove custom assertion * add dimmed class to the DOM top level lement of the InputData node * test alternative input data shape
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 found some parts that we need to address probably. Please take a look when you have a moment and also sorry, probably myself is the author of problematic lines.
export enum DataType { | ||
Undefined = "<Undefined>", | ||
Any = "Any", | ||
Boolean = "boolean", | ||
Context = "context", | ||
Date = "date", | ||
DateTime = "date and time", | ||
DateTimeDuration = "days and time duration", | ||
Number = "number", | ||
String = "string", | ||
Time = "time", | ||
YearsMonthsDuration = "years and months duration", | ||
} |
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 think we have this in __fixtures__/jsonModel.ts
public async startDraggingEdge(args: { from: string; edgeType: EdgeType }) { | ||
await this.select({ name: args.from, position: NodePosition.TOP }); | ||
await this.get({ name: args.from }).getByTitle(this.getAddEdgeTitle(args.edgeType)).hover(); | ||
await this.page.mouse.down(); | ||
} |
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.
public async startDraggingEdge(args: { from: string; edgeType: EdgeType }) { | |
await this.select({ name: args.from, position: NodePosition.TOP }); | |
await this.get({ name: args.from }).getByTitle(this.getAddEdgeTitle(args.edgeType)).hover(); | |
await this.page.mouse.down(); | |
} | |
/** | |
* Used for testing invalid edges. No edge is created using this method. | |
*/ | |
public async startDraggingEdge(args: { from: string; edgeType: EdgeType }) { | |
await this.select({ name: args.from, position: NodePosition.TOP }); | |
await this.get({ name: args.from }).getByTitle(this.getAddEdgeTitle(args.edgeType)).hover(); | |
await this.page.mouse.down(); | |
} |
}); | ||
}); | ||
|
||
test("shouldn't add an Authority Requirement edge from Input Data node to Input Data node", async ({ |
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.
test("shouldn't add an Authority Requirement edge from Input Data node to Input Data node", async ({ | |
test("shouldn't add an Authority Requirement edge from Knowledge Source node to Input Data node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.INPUT_DATA })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Authority Requirement edge from Input Data node to Decision Service node", async ({ |
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.
test("shouldn't add an Authority Requirement edge from Input Data node to Decision Service node", async ({ | |
test("shouldn't add an Authority Requirement edge from Knowledge Source node to Decision Service node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.DECISION_SERVICE })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Authority Requirement edge from Input Data node to Group node", async ({ |
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.
test("shouldn't add an Authority Requirement edge from Input Data node to Group node", async ({ | |
test("shouldn't add an Authority Requirement edge from Knowledge Source node to Group node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.GROUP })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Authority Requirement edge from Input Data node to Text Annotation node", async ({ |
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.
test("shouldn't add an Authority Requirement edge from Input Data node to Text Annotation node", async ({ | |
test("shouldn't add an Authority Requirement edge from Knowledge Source node to Text Annotation node", async ({ |
}); | ||
}); | ||
|
||
test("shouldn't add an Knowledge Requirement edge from Input Data node to Input Data node", async ({ |
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.
test("shouldn't add an Knowledge Requirement edge from Input Data node to Input Data node", async ({ | |
test("shouldn't add an Knowledge Requirement edge from BKM node to Input Data node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.INPUT_DATA })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Knowledge Requirement edge from Input Data node to Knowledge Source node", async ({ |
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.
test("shouldn't add an Knowledge Requirement edge from Input Data node to Knowledge Source node", async ({ | |
test("shouldn't add an Knowledge Requirement edge from BKM node to Knowledge Source node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.KNOWLEDGE_SOURCE })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Knowledge Requirement edge from Input Data node to Group node", async ({ |
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.
test("shouldn't add an Knowledge Requirement edge from Input Data node to Group node", async ({ | |
test("shouldn't add an Knowledge Requirement edge from BKM node to Group node", async ({ |
await expect(nodes.get({ name: DefaultNodeName.GROUP })).toHaveClass(/.*dimmed/); | ||
}); | ||
|
||
test("shouldn't add an Knowledge Requirement edge from Input Data node to Text Annotation node", async ({ |
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.
test("shouldn't add an Knowledge Requirement edge from Input Data node to Text Annotation node", async ({ | |
test("shouldn't add an Knowledge Requirement edge from BKM node to Text Annotation node", async ({ |
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.
Thank you for updates
@ljmotta Looking at the
|
#2230 merged. I already re-triggered the CI here. |
…mplementing the E2E test suite for the new DMN Editor - Part 3 (apache#2211) Co-authored-by: Jozef Marko <[email protected]>
Related to apache/incubator-kie-issues#946
This PR continues the exploratory phase and continue the work started on #2158
Description
This PR creates introduce and fix a few things:
transform
overzoom
due to Playwright compatibility.y
offset to the viewport.variable
from Knowledge Source nodes.add[Edge]Waypoint
tests.delete[Edge]Waypoint
tests.invalid[Edge]
tests.Improvements for the next interation