Commit b60ad399 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent c1a893d9
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment