Find annoying user by id

This commit is contained in:
mattwr18 2019-10-01 20:05:34 +02:00
parent 8aa7f376b6
commit 3dee2137d4
2 changed files with 5 additions and 6 deletions

View File

@ -411,15 +411,14 @@ Given("there is an annoying user called {string}", name => {
});
Given("there is an annoying user who has blocked me", () => {
cy.login({ email: 'i-blocked-a-moderator-ha-ha-ha@example.org', password: '1234' })
.neode()
cy.neode()
.first("User", {
role: 'moderator'
})
.then(blocked => {
cy.neode()
.first("User", {
name
id: 'annoying-user'
})
.relateTo(blocked, "blocked");
});

View File

@ -9,9 +9,9 @@ Feature: Report and Moderate
Background:
Given we have the following user accounts:
| id | name | email | password |
| u67 | David Irving | david-irving@example.org | 1234 |
| annoying-user | I'm gonna block Moderators and Admins HA HA HA | i-blocked-a-moderator-ha-ha-ha@example.org | 1234 |
| id | name |
| u67 | David Irving |
| annoying-user | I'm gonna block Moderators and Admins HA HA HA |
Given we have the following posts in our database:
| authorId | id | title | content |