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
Boxiang Sun
gitlab-ce
Commits
b452b0c7
Commit
b452b0c7
authored
Sep 29, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used send_keys(:return) for elements that are not clickable at one point
parent
06d41721
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
spec/features/projects/import_export/namespace_export_file_spec.rb
...ures/projects/import_export/namespace_export_file_spec.rb
+1
-1
spec/features/triggers_spec.rb
spec/features/triggers_spec.rb
+8
-7
No files found.
spec/features/projects/import_export/namespace_export_file_spec.rb
View file @
b452b0c7
...
...
@@ -52,7 +52,7 @@ feature 'Import/Export - Namespace export file cleanup', js: true do
expect
(
page
).
to
have_content
(
'Export project'
)
click_link
'Export project'
find
(
:link
,
'Export project'
).
send_keys
(
:return
)
visit
edit_project_path
(
project
)
...
...
spec/features/triggers_spec.rb
View file @
b452b0c7
...
...
@@ -45,7 +45,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
# See if edit page has correct descrption
find
(
'a[title="Edit"]'
).
click
find
(
'a[title="Edit"]'
).
send_keys
(
:return
)
expect
(
page
.
find
(
'#trigger_description'
).
value
).
to
have_content
'trigger desc'
end
...
...
@@ -54,7 +54,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
# See if edit page opens, then fill in new description and save
find
(
'a[title="Edit"]'
).
click
find
(
'a[title="Edit"]'
).
send_keys
(
:return
)
fill_in
'trigger_description'
,
with:
new_trigger_title
click_button
'Save trigger'
...
...
@@ -70,7 +70,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
# See if the trigger can be edited and description is blank
find
(
'a[title="Edit"]'
).
click
find
(
'a[title="Edit"]'
).
send_keys
(
:return
)
expect
(
page
.
find
(
'#trigger_description'
).
value
).
to
have_content
''
# See if trigger can be updated with description and saved successfully
...
...
@@ -95,7 +95,7 @@ feature 'Triggers', js: true do
scenario
'take trigger ownership'
do
# See if "Take ownership" on trigger works post trigger creation
page
.
accept_confirm
do
fi
nd
(
'a.btn-trigger-take-ownership'
).
click
fi
rst
(
:link
,
"Take ownership"
).
send_keys
(
:return
)
end
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger was re-assigned.'
...
...
@@ -117,11 +117,12 @@ feature 'Triggers', js: true do
scenario
'revoke trigger'
do
# See if "Revoke" on trigger works post trigger creation
find
(
'a.btn-trigger-revoke'
).
click
page
.
accept_confirm
do
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger removed'
expect
(
page
).
to
have_selector
(
'p.settings-message.text-center.append-bottom-default'
)
find
(
'a.btn-trigger-revoke'
).
send_keys
(
:return
)
end
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger removed'
expect
(
page
).
to
have_selector
(
'p.settings-message.text-center.append-bottom-default'
)
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