Ocelot-Social/cypress/e2e/User.Block/I_block_the_user_{string}.js

12 lines
298 B
JavaScript

import { When } from "@badeball/cypress-cucumber-preprocessor";
When("I block the user {string}", name => {
cy.neode()
.first("User", { name })
.then(blockedUser => {
cy.neode()
.first("User", {id: "id-of-peter-pan"})
.relateTo(blockedUser, "blocked");
});
});