Fix test
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
c1a893d91a
commit
b60ad399ac
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue