forked from mislav/movieapp
/
friends.feature
34 lines (29 loc) · 1.19 KB
/
friends.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Feature: Discovering movies watched by friends
Background:
Given the database contains movies from TMDB "terminator.json" with full info
And @ivana and @jordi are friends of @mislav
Scenario: New user, nothing watched by friends
When I login as @mislav
Then I should not see "people you're following"
Scenario: Nothing watched by friends
Given @mislav is not a new user
When I login as @mislav
And I follow "following"
Then I should see "No movies found."
Scenario: New user, friends watched something
Given @ivana watched "The Terminator"
When I login as @mislav
Then I should see "Your friends have watched 1 movie."
When I follow "following"
Then I should see "The Terminator" as a movie title in the results
Scenario: Friends watched multiple movies
Given @ivana and @jordi watched "The Terminator"
And @jordi watched "Terminator Salvation"
And @mislav is not a new user
When I login as @mislav
And I follow "following"
And I follow "Terminator Salvation"
Then I should see "jordi has watched this."
When I go back
And I follow "The Terminator"
Then I should see "jordi and ivana have watched this."