mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Find annoying user by id
This commit is contained in:
parent
8aa7f376b6
commit
3dee2137d4
@ -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");
|
||||
});
|
||||
|
||||
@ -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 |
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user