Ocelot-Social/cypress/integration/User.Mute/I_mute_the_user_{string}.js
2021-04-14 20:36:14 +02:00

13 lines
302 B
JavaScript

import { When } from "cypress-cucumber-preprocessor/steps";
When("I mute the user {string}", name => {
cy.neode()
.first("User", { name })
.then(mutedUser => {
cy.neode()
.first("User", {
name: "Peter Pan"
})
.relateTo(mutedUser, "muted");
});
});