Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
ed757ef6
Commit
ed757ef6
authored
Nov 06, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rewrite remove tag test
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
cea2afa8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
27 deletions
+7
-27
features/project/commits/tags.feature
features/project/commits/tags.feature
+1
-8
features/steps/project/commits/tags.rb
features/steps/project/commits/tags.rb
+6
-19
No files found.
features/project/commits/tags.feature
View file @
ed757ef6
...
@@ -29,13 +29,6 @@ Feature: Project Commits Tags
...
@@ -29,13 +29,6 @@ Feature: Project Commits Tags
@javascript
@javascript
Scenario
:
I
delete a tag
Scenario
:
I
delete a tag
Given
I visit tag 'v1.1.0' page
Given
I delete tag 'v1.1.0'
Given
I delete tag 'v1.1.0'
Then
I should not see tag 'v1.1.0'
Then
I should not see tag 'v1.1.0'
@javascript
Scenario
:
I
delete all tags and see info message
Given
I delete all tags
Then
I should see tags info message
# @wip
# Scenario: I can download project by tag
features/steps/project/commits/tags.rb
View file @
ed757ef6
...
@@ -52,31 +52,18 @@ class Spinach::Features::ProjectCommitsTags < Spinach::FeatureSteps
...
@@ -52,31 +52,18 @@ class Spinach::Features::ProjectCommitsTags < Spinach::FeatureSteps
expect
(
page
).
to
have_content
'Tag already exists'
expect
(
page
).
to
have_content
'Tag already exists'
end
end
step
"I visit tag 'v1.1.0' page"
do
click_link
'v1.1.0'
end
step
"I delete tag 'v1.1.0'"
do
step
"I delete tag 'v1.1.0'"
do
page
.
within
'.tags'
do
first
(
'.btn-remove'
).
click
first
(
'.btn-remove'
).
click
sleep
0.05
sleep
0.05
end
end
end
step
"I should not see tag 'v1.1.0'"
do
step
"I should not see tag 'v1.1.0'"
do
page
.
within
'.tags'
do
page
.
within
'.tags'
do
expect
(
page
.
all
(
visible:
true
)).
not_to
have_content
'v1.1.0'
expect
(
page
.
all
(
visible:
true
)).
not_to
have_content
'v1.1.0'
end
end
end
end
step
'I delete all tags'
do
page
.
within
'.tags'
do
page
.
all
(
'.btn-remove'
).
each
do
|
remove
|
remove
.
click
sleep
0.05
end
end
end
step
'I should see tags info message'
do
page
.
within
'.tags'
do
expect
(
page
).
to
have_content
'Repository has no tags yet.'
end
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment