| Summary: | The SWTBot class "ViewpointSelectionDialog" does not take into account properly the viewpoints to deselect | ||
|---|---|---|---|
| Product: | [Modeling] Sirius | Reporter: | Mickael LANOE <mickael.lanoe> |
| Component: | Core | Assignee: | Project inbox <sirius.core-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | laurent.redor, pierre-charles.david, steve.monnier |
| Version: | 1.0.1 | Keywords: | triaged |
| Target Milestone: | 2.0.0 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
fix by commit dbbff32b597356b9f61605ee5b937309c3d2700d Available in Sirius 2.0.0. |
The method 'selectViewpoint(Set<String>, Set<String>)' in the class 'org.eclipse.sirius.tests.swtbot.support.api.dialog.ViewpointSelectionDialog', does not take into account properly the 'viewpointToDeselect' parameter. This method contains a map with a Viewpoint for the key and a boolean for the value. The boolean value is used to select or deselect the Viewpoint key. But this value is not used to check or uncheck the table item, as you can see below: final Map<String, Boolean> viewpointSelection = ... final String text = item.getText(2); if (viewpointSelection.containsKey(text)) { bot.table().click(rowPosition, 0); viewpointSelection.remove(text); }