mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
11 lines
293 B
JavaScript
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");
|
|
});
|
|
}); |