-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into 1926-indexing-of-map-3
- Loading branch information
Showing
217 changed files
with
6,513 additions
and
1,726 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+1.94 KB
(120%)
...tron/Linux/Creator toolbar should allow collapse (persist) and filtering #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+70.7 KB
...on/Linux/Sticky notes should add text to note and display it as markdown #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68.3 KB
...snapshots__/electron/Linux/Sticky notes should allow to drag sticky note #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+69.5 KB
...Linux/Sticky notes should disable sticky note when scenario is not saved #0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
describe("Sticky notes", () => { | ||
const seed = "stickyNotes"; | ||
|
||
before(() => { | ||
cy.deleteAllTestProcesses({ filter: seed, force: true }); | ||
}); | ||
|
||
beforeEach(() => { | ||
cy.visitNewProcess(seed, "stickyNotes"); | ||
}); | ||
|
||
const screenshotOptions: Cypress.MatchImageOptions = { | ||
screenshotConfig: { clip: { x: 0, y: 0, width: 1400, height: 600 } }, | ||
}; | ||
|
||
it("should allow to drag sticky note", () => { | ||
cy.layoutScenario(); | ||
cy.contains(/^sticky notes$/i) | ||
.should("exist") | ||
.scrollIntoView(); | ||
cy.get("[data-testid='component:sticky note']") | ||
.should("be.visible") | ||
.drag("#nk-graph-main", { | ||
target: { | ||
x: 600, | ||
y: 300, | ||
}, | ||
force: true, | ||
}); | ||
|
||
cy.get("[data-testid=graphPage]").matchImage(screenshotOptions); | ||
}); | ||
|
||
it("should add text to note and display it as markdown", () => { | ||
cy.layoutScenario(); | ||
cy.contains(/^sticky notes$/i) | ||
.should("exist") | ||
.scrollIntoView(); | ||
cy.get("[data-testid='component:sticky note']") | ||
.should("be.visible") | ||
.drag("#nk-graph-main", { | ||
target: { | ||
x: 600, | ||
y: 300, | ||
}, | ||
force: true, | ||
}); | ||
cy.get(".sticky-note-content").dblclick(); | ||
cy.get(".sticky-note-content textarea").type("# Title\n- p1\n- p2\n\n[link](href)"); | ||
cy.get("[model-id='request']").click(); | ||
cy.get("[data-testid=graphPage]").matchImage(screenshotOptions); | ||
}); | ||
|
||
it("should disable sticky note when scenario is not saved", () => { | ||
cy.layoutScenario(); | ||
cy.contains(/^sticky notes$/i) | ||
.should("exist") | ||
.scrollIntoView(); | ||
|
||
cy.dragNode("request", { x: 600, y: 300 }); | ||
|
||
cy.get("[data-testid='component:sticky note']").should("have.class", "tool disabled"); | ||
cy.get("[data-testid=graphPage]").matchImage(screenshotOptions); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{ | ||
"metaData": { | ||
"id": "sticky", | ||
"additionalFields": { | ||
"description": null, | ||
"properties": { | ||
"inputSchema": "{}", | ||
"outputSchema": "{}", | ||
"slug": "sticky" | ||
}, | ||
"metaDataType": "RequestResponseMetaData", | ||
"showDescription": false | ||
} | ||
}, | ||
"nodes": [ | ||
{ | ||
"id": "request", | ||
"ref": { | ||
"typ": "request", | ||
"parameters": [] | ||
}, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 0, | ||
"y": 0 | ||
} | ||
}, | ||
"type": "Source" | ||
}, | ||
{ | ||
"id": "response", | ||
"ref": { | ||
"typ": "response", | ||
"parameters": [ | ||
{ | ||
"name": "Raw editor", | ||
"expression": { | ||
"language": "spel", | ||
"expression": "false" | ||
} | ||
} | ||
] | ||
}, | ||
"endResult": null, | ||
"isDisabled": null, | ||
"additionalFields": { | ||
"description": null, | ||
"layoutData": { | ||
"x": 0, | ||
"y": 180 | ||
} | ||
}, | ||
"type": "Sink" | ||
} | ||
], | ||
"additionalBranches": [] | ||
} |
Oops, something went wrong.