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
Hide 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
...
@@ -94,6 +94,6 @@ feature 'Import/Export - project import integration test', :js do
end
end
def
click_import_project_tab
def
click_import_project_tab
find
(
'#import-project-tab'
).
trigger
(
'click'
)
find
(
'#import-project-tab'
).
click
end
end
end
end
spec/features/projects/new_project_spec.rb
View file @
04149dcc
...
@@ -15,7 +15,7 @@ feature 'New project' do
...
@@ -15,7 +15,7 @@ feature 'New project' do
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project path'
)
expect
(
page
).
to
have_content
(
'Project name'
)
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
(
'GitHub'
)
expect
(
page
).
to
have_link
(
'Bitbucket'
)
expect
(
page
).
to
have_link
(
'Bitbucket'
)
...
@@ -137,7 +137,7 @@ feature 'New project' do
...
@@ -137,7 +137,7 @@ feature 'New project' do
context
'Import project options'
,
:js
do
context
'Import project options'
,
:js
do
before
do
before
do
visit
new_project_path
visit
new_project_path
find
(
'#import-project-tab'
).
trigger
(
'click'
)
find
(
'#import-project-tab'
).
click
end
end
context
'from git repository url'
do
context
'from git repository url'
do
...
...
spec/features/projects_spec.rb
View file @
04149dcc
...
@@ -13,8 +13,10 @@ feature 'Project' do
...
@@ -13,8 +13,10 @@ feature 'Project' do
end
end
it
"allows creation from templates"
,
:js
do
it
"allows creation from templates"
,
:js
do
find
(
'#create-from-template-tab'
).
trigger
(
'click'
)
find
(
'#create-from-template-tab'
).
click
find
(
"#
#{
template
.
name
}
"
).
trigger
(
'click'
)
page
.
execute_script
(
"document.querySelector('#
#{
template
.
name
}
').click()"
)
fill_in
(
"project_path"
,
with:
template
.
name
)
fill_in
(
"project_path"
,
with:
template
.
name
)
page
.
within
'#content-body'
do
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