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
04149dcc
Commit
04149dcc
authored
Oct 23, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed trigger click calls to click()
parent
df20c6fe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
spec/features/projects/import_export/import_file_spec.rb
spec/features/projects/import_export/import_file_spec.rb
+1
-1
spec/features/projects/new_project_spec.rb
spec/features/projects/new_project_spec.rb
+2
-2
spec/features/projects_spec.rb
spec/features/projects_spec.rb
+4
-2
No files found.
spec/features/projects/import_export/import_file_spec.rb
View file @
04149dcc
...
...
@@ -94,6 +94,6 @@ feature 'Import/Export - project import integration test', :js do
end
def
click_import_project_tab
find
(
'#import-project-tab'
).
trigger
(
'click'
)
find
(
'#import-project-tab'
).
click
end
end
spec/features/projects/new_project_spec.rb
View file @
04149dcc
...
...
@@ -15,7 +15,7 @@ feature 'New project' do
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project name'
)
find
(
'#import-project-tab'
).
trigger
(
'click'
)
find
(
'#import-project-tab'
).
click
expect
(
page
).
to
have_link
(
'GitHub'
)
expect
(
page
).
to
have_link
(
'Bitbucket'
)
...
...
@@ -137,7 +137,7 @@ feature 'New project' do
context
'Import project options'
,
:js
do
before
do
visit
new_project_path
find
(
'#import-project-tab'
).
trigger
(
'click'
)
find
(
'#import-project-tab'
).
click
end
context
'from git repository url'
do
...
...
spec/features/projects_spec.rb
View file @
04149dcc
...
...
@@ -13,8 +13,10 @@ feature 'Project' do
end
it
"allows creation from templates"
,
:js
do
find
(
'#create-from-template-tab'
).
trigger
(
'click'
)
find
(
"#
#{
template
.
name
}
"
).
trigger
(
'click'
)
find
(
'#create-from-template-tab'
).
click
page
.
execute_script
(
"document.querySelector('#
#{
template
.
name
}
').click()"
)
fill_in
(
"project_path"
,
with:
template
.
name
)
page
.
within
'#content-body'
do
...
...
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