Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-11-06 14:47:29 +01:00
parent c1a893d91a
commit b60ad399ac
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 4 additions and 4 deletions

View File

@ -27,7 +27,6 @@ Feature: Project Commits Tags
And I submit new tag form with tag that already exists
Then I should see new an error that tag already exists
@javascript
Scenario: I delete a tag
Given I visit tag 'v1.1.0' page
Given I delete tag 'v1.1.0'

View File

@ -57,13 +57,14 @@ class Spinach::Features::ProjectCommitsTags < Spinach::FeatureSteps
end
step "I delete tag 'v1.1.0'" do
first('.btn-remove').click
sleep 0.05
page.within('.content') do
first('.btn-remove').click
end
end
step "I should not see tag 'v1.1.0'" do
page.within '.tags' do
expect(page.all(visible: true)).not_to have_content 'v1.1.0'
expect(page).not_to have_link 'v1.1.0'
end
end
end