Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit 5480c62

Browse files
Behat: Don't use Faker providers for usernames
1 parent cf88d1c commit 5480c62

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Tests/Features/Controller/ControllerWithFixtures.feature

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,19 @@ Feature: Test DefaultController with Fixtures
99
And I should see a "main.container > div.tweets" element
1010
And I should see 3 "main.container > div.tweets > div.media > blockquote.media-body" elements
1111
# Tweets
12+
# First tweet
1213
And I should see "Tweet 1" in the "main.container > div.tweets > div.media:nth-child(1) > blockquote.media-body > p" element
13-
And I should see "Tianna Ziemann" in the "main.container > div.tweets > div.media:nth-child(1) > blockquote.media-body > small > a:first-child" element
14+
And I should see "User 1" in the "main.container > div.tweets > div.media:nth-child(1) > blockquote.media-body > small > a:first-child" element
1415
# Retweet count
1516
And I should see "42" in the "main.container > div.tweets > div.media:nth-child(1) > blockquote.media-body > small > span.badge:nth-child(3)" element
1617
# Favorite count
1718
And I should see "13" in the "main.container > div.tweets > div.media:nth-child(1) > blockquote.media-body > small > span.badge:nth-child(4)" element
18-
# Other tweets
19+
# Second tweet
1920
And I should see "Tweet 2" in the "main.container > div.tweets > div.media:nth-child(2) > blockquote.media-body > p" element
20-
And I should see "Suzanne Moen" in the "main.container > div.tweets > div.media:nth-child(2) > blockquote.media-body > small > a" element
21+
And I should see "User 2" in the "main.container > div.tweets > div.media:nth-child(2) > blockquote.media-body > small > a" element
22+
# Third tweet
2123
And I should see "Tweet 3" in the "main.container > div.tweets > div.media:nth-child(3) > blockquote.media-body > p" element
22-
And I should see "Dr. Tremaine Kohler" in the "main.container > div.tweets > div.media:nth-child(3) > blockquote.media-body > small > a" element
24+
And I should see "User 3" in the "main.container > div.tweets > div.media:nth-child(3) > blockquote.media-body > small > a" element
2325
And I should see "3 pending tweets" in the "body > main.container > div.navigation.row > div.count.alert.alert-info" element
2426
# There is no message about deleted tweets
2527
And I should not see a "div.alert.alert-success" element

Tests/Fixtures/User.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AlexisLefebvre\Bundle\AsyncTweetsBundle\Entity\User:
22
user{1..3}:
33
id: <current()>
4-
name: <name()>
5-
screen_name: <name()>
4+
name: "User <current()>"
5+
screen_name: "User <current()>"

0 commit comments

Comments
 (0)