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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a7b3f452
Commit
a7b3f452
authored
Apr 06, 2020
by
ddavison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide has aliases for completed jobs/pipelines
parent
8127a62d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
qa/qa/page/component/ci_badge_link.rb
qa/qa/page/component/ci_badge_link.rb
+4
-0
qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
...ine/parent_child_pipelines_dependent_relationship_spec.rb
+2
-2
qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_independent_relationship_spec.rb
...e/parent_child_pipelines_independent_relationship_spec.rb
+2
-2
qa/qa/specs/features/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
...s/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
+1
-1
No files found.
qa/qa/page/component/ci_badge_link.rb
View file @
a7b3f452
...
...
@@ -13,6 +13,10 @@ module QA
timeout
?
completed?
(
timeout:
timeout
)
:
completed?
status_badge
==
status
end
# has_passed? => passed?
# has_failed? => failed?
alias_method
:"has_
#{
status
}
?"
,
:"
#{
status
}
?"
end
# e.g. def pending?; status_badge == 'pending'; end
...
...
qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_dependent_relationship_spec.rb
View file @
a7b3f452
...
...
@@ -32,7 +32,7 @@ module QA
parent_pipeline
.
click_linked_job
(
project
.
name
)
expect
(
parent_pipeline
).
to
have_job
(
"child_job"
)
expect
(
parent_pipeline
).
to
b
e_passed
expect
(
parent_pipeline
).
to
hav
e_passed
end
end
...
...
@@ -44,7 +44,7 @@ module QA
parent_pipeline
.
click_linked_job
(
project
.
name
)
expect
(
parent_pipeline
).
to
have_job
(
"child_job"
)
expect
(
parent_pipeline
).
to
b
e_failed
expect
(
parent_pipeline
).
to
hav
e_failed
end
end
...
...
qa/qa/specs/features/browser_ui/6_release/pipeline/parent_child_pipelines_independent_relationship_spec.rb
View file @
a7b3f452
...
...
@@ -32,7 +32,7 @@ module QA
parent_pipeline
.
click_linked_job
(
project
.
name
)
expect
(
parent_pipeline
).
to
have_job
(
"child_job"
)
expect
(
parent_pipeline
).
to
b
e_passed
expect
(
parent_pipeline
).
to
hav
e_passed
end
end
...
...
@@ -44,7 +44,7 @@ module QA
parent_pipeline
.
click_linked_job
(
project
.
name
)
expect
(
parent_pipeline
).
to
have_job
(
"child_job"
)
expect
(
parent_pipeline
).
to
b
e_passed
expect
(
parent_pipeline
).
to
hav
e_passed
end
end
...
...
qa/qa/specs/features/ee/browser_ui/6_release/multi-project_pipelines_spec.rb
View file @
a7b3f452
...
...
@@ -85,7 +85,7 @@ module QA
end
Page
::
Project
::
Pipeline
::
Show
.
perform
do
|
show
|
expect
(
show
).
to
b
e_passed
expect
(
show
).
to
hav
e_passed
expect
(
show
).
to
have_no_job
(
"downstream_job"
)
show
.
click_linked_job
(
downstream_project_name
)
...
...
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