Ocelot-Social/cypress/integration/User.Block/I_block_the_user_{string}.js
2021-04-12 13:24:52 +02:00

11 lines
293 B
JavaScript

import { When } from "cypress-cucumber-preprocessor/steps";
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");
});
});