Fix tests

This commit is contained in:
Flaburgan 2016-03-08 17:18:01 +01:00
parent a10601f9a9
commit 5ff085afff
4 changed files with 16 additions and 2 deletions

View file

@ -4,9 +4,8 @@
#single-post-content {
.head {
padding-bottom: 10px;
padding-top: 5px;
border-bottom: 1px solid $border-grey;
padding: 10px 0;
#post-info {
.author{ color: $grey; }
.info {
@ -108,6 +107,11 @@
}
#single-post-interactions {
> .framed-content {
padding-top: 10px;
}
.no-comments { text-align: center; }
a {

View file

@ -13,4 +13,6 @@ Feature: donations
Scenario: Bitcoin donations
Given I have configured a Bitcoin address
And I go to the home page
Then I should see "Donate" within ".info-bar"
And I click on "Donate" navbar title
Then I should see the Bitcoin address

View file

@ -37,11 +37,13 @@ Feature: Invitations
And I close the publisher
And I log out
And I sign in as "alice@alice.alice"
And I click on "Invite your friends" navbar title
And I click on selector "#invitations-button"
Then I should see one less invite
Scenario: sends an invitation
When I sign in as "alice@alice.alice"
And I click on "Invite your friends" navbar title
And I click on selector "#invitations-button"
And I fill in the following:
| email_inviter_emails | alex@example.com |

View file

@ -21,3 +21,9 @@ end
Then /^I should have (\d+) nsfw posts$/ do |num_posts|
page.should have_css(".nsfw-shield", count: num_posts.to_i)
end
When /^(?:|I )click on "([^"]*)" navbar title$/ do |title|
with_scope(".info-bar") do
find("h5", text: title).click
end
end