BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
namespace_export_file_spec.rb
...ures/projects/import_export/namespace_export_file_spec.rb
+1
-1
triggers_spec.rb
spec/features/triggers_spec.rb
+7
-6
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
...
@@ -52,7 +52,7 @@ feature 'Import/Export - Namespace export file cleanup', js: true do
expect
(
page
).
to
have_content
(
'Export project'
)
expect
(
page
).
to
have_content
(
'Export project'
)
click_link
'Export project'
find
(
:link
,
'Export project'
).
send_keys
(
:return
)
visit
edit_project_path
(
project
)
visit
edit_project_path
(
project
)
...
...
spec/features/triggers_spec.rb
View file @
b452b0c7
...
@@ -45,7 +45,7 @@ feature 'Triggers', js: true do
...
@@ -45,7 +45,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
visit
project_settings_ci_cd_path
(
@project
)
# See if edit page has correct descrption
# 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'
expect
(
page
.
find
(
'#trigger_description'
).
value
).
to
have_content
'trigger desc'
end
end
...
@@ -54,7 +54,7 @@ feature 'Triggers', js: true do
...
@@ -54,7 +54,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
visit
project_settings_ci_cd_path
(
@project
)
# See if edit page opens, then fill in new description and save
# 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
fill_in
'trigger_description'
,
with:
new_trigger_title
click_button
'Save trigger'
click_button
'Save trigger'
...
@@ -70,7 +70,7 @@ feature 'Triggers', js: true do
...
@@ -70,7 +70,7 @@ feature 'Triggers', js: true do
visit
project_settings_ci_cd_path
(
@project
)
visit
project_settings_ci_cd_path
(
@project
)
# See if the trigger can be edited and description is blank
# 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
''
expect
(
page
.
find
(
'#trigger_description'
).
value
).
to
have_content
''
# See if trigger can be updated with description and saved successfully
# See if trigger can be updated with description and saved successfully
...
@@ -95,7 +95,7 @@ feature 'Triggers', js: true do
...
@@ -95,7 +95,7 @@ feature 'Triggers', js: true do
scenario
'take trigger ownership'
do
scenario
'take trigger ownership'
do
# See if "Take ownership" on trigger works post trigger creation
# See if "Take ownership" on trigger works post trigger creation
page
.
accept_confirm
do
page
.
accept_confirm
do
fi
nd
(
'a.btn-trigger-take-ownership'
).
click
fi
rst
(
:link
,
"Take ownership"
).
send_keys
(
:return
)
end
end
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger was re-assigned.'
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger was re-assigned.'
...
@@ -117,13 +117,14 @@ feature 'Triggers', js: true do
...
@@ -117,13 +117,14 @@ feature 'Triggers', js: true do
scenario
'revoke trigger'
do
scenario
'revoke trigger'
do
# See if "Revoke" on trigger works post trigger creation
# See if "Revoke" on trigger works post trigger creation
find
(
'a.btn-trigger-revoke'
).
click
page
.
accept_confirm
do
page
.
accept_confirm
do
find
(
'a.btn-trigger-revoke'
).
send_keys
(
:return
)
end
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger removed'
expect
(
page
.
find
(
'.flash-notice'
)).
to
have_content
'Trigger removed'
expect
(
page
).
to
have_selector
(
'p.settings-message.text-center.append-bottom-default'
)
expect
(
page
).
to
have_selector
(
'p.settings-message.text-center.append-bottom-default'
)
end
end
end
end
end
describe
'show triggers workflow'
do
describe
'show triggers workflow'
do
scenario
'contains trigger description placeholder'
do
scenario
'contains trigger description placeholder'
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