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