Skip to content

Instantly share code, notes, and snippets.

@nancruz
Created March 31, 2020 17:29
Cypress test example
it("Should select a single node", () => {
const johnSnowId = "Customer::id::C1";
return cy
.wait("@queryGraph")
.waitUntilGraphSimulationEnd()
.selectionHasNode(johnSnowId)
.then((isNodeSelected) => expect(isNodeSelected).to.be.false)
.getGraphNodeInformationById(johnSnowId)
.then((johnSnow) => cy.clickOnGraphNode(johnSnow))
.selectionHasNode(johnSnowId)
.then((isNodeSelected) => expect(isNodeSelected).to.be.true);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment