mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
15 lines
331 B
JavaScript
15 lines
331 B
JavaScript
import { When } from "cypress-cucumber-preprocessor/steps";
|
|
|
|
When("a user has blocked me", () => {
|
|
cy.neode()
|
|
.first("User", {
|
|
name: "Peter Pan"
|
|
})
|
|
.then(blockedUser => {
|
|
cy.neode()
|
|
.first("User", {
|
|
name: 'Harassing User'
|
|
})
|
|
.relateTo(blockedUser, "blocked");
|
|
});
|
|
}); |