fixed User.Block.feature & User.Mute.feature to wait for search results

This commit is contained in:
Ulf Gebhardt 2021-04-12 12:47:48 +02:00
parent 60c4039803
commit 40a80288d1
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
2 changed files with 6 additions and 0 deletions

View File

@ -40,6 +40,7 @@ Feature: User - block an user
Given "harassing-user" wrote a post "You can still see my posts"
And I block the user "Harassing User"
When I search for "see"
And I wait for 750 milliseconds
Then I should see the following posts in the select dropdown:
| title |
| You can still see my posts |
@ -49,6 +50,7 @@ Feature: User - block an user
And I am logged in as "harassing-user"
And I navigate to page "/"
And I search for "previously created"
And I wait for 750 milliseconds
Then I should see the following posts in the select dropdown:
| title |
| previously created post |

View File

@ -33,15 +33,18 @@ Feature: Mute a User
Scenario: Posts of muted users are filtered from search results, users are not
Given "annoying-user" wrote a post "Spam Spam Spam"
When I search for "Spam"
And I wait for 750 milliseconds
Then I should see the following posts in the select dropdown:
| title |
| Spam Spam Spam |
When I mute the user "Annoying User"
And I refresh the page
And I search for "Anno"
And I wait for 750 milliseconds
Then the search should not contain posts by the annoying user
But the search should contain the annoying user
But I search for "not muted"
And I wait for 750 milliseconds
Then I should see the following posts in the select dropdown:
| title |
| Post that should be seen |
@ -51,6 +54,7 @@ Feature: Mute a User
And I am logged in as "annoying-user"
And I navigate to page "/"
And I search for "previously created"
And I wait for 750 milliseconds
Then I should see the following posts in the select dropdown:
| title |
| previously created post |