-
Notifications
You must be signed in to change notification settings - Fork 323
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
Add-node buttons #9247
Add-node buttons #9247
Changes from 6 commits
3764dc8
7c65603
6984fa2
ff36971
c8fb308
f913c9e
ae1cb25
c36cd05
387dd82
fe5b156
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 |
---|---|---|
|
@@ -53,6 +53,7 @@ provideVisualizationConfig._mock( | |
}, | ||
], | ||
updateType() {}, | ||
addNode() {}, | ||
}, | ||
app, | ||
) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,16 @@ test('Selecting nodes by click', async ({ page }) => { | |
await expect(node1).not.toBeSelected() | ||
await expect(node2).not.toBeSelected() | ||
|
||
const deselectAll = async () => { | ||
await page.keyboard.press('Escape') | ||
await expect(node1).not.toBeSelected() | ||
await expect(node2).not.toBeSelected() | ||
} | ||
|
||
await locate.graphNodeIcon(node1).click() | ||
await expect(node1).toBeSelected() | ||
await expect(node2).not.toBeSelected() | ||
await deselectAll() | ||
|
||
await locate.graphNodeIcon(node2).click() | ||
await expect(node1).not.toBeSelected() | ||
|
@@ -23,14 +30,12 @@ test('Selecting nodes by click', async ({ page }) => { | |
await locate.graphNodeIcon(node1).click({ modifiers: ['Shift'] }) | ||
await expect(node1).toBeSelected() | ||
await expect(node2).toBeSelected() | ||
await deselectAll() | ||
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. Here also: I want to test that even having two nodes selected, when clicking one, the other is deselected. |
||
|
||
await locate.graphNodeIcon(node2).click() | ||
await expect(node1).not.toBeSelected() | ||
await expect(node2).toBeSelected() | ||
|
||
await page.mouse.click(600, 200) | ||
await expect(node1).not.toBeSelected() | ||
await expect(node2).not.toBeSelected() | ||
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. Another case removed: clicking at the background should deselect all nodes. I actually had regressions there: please restore it. |
||
await deselectAll() | ||
}) | ||
|
||
test('Selecting nodes by area drag', async ({ page }) => { | ||
|
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 line forfeits one of the covered cases: that clicking at non-selected node also deselect previous one.