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
58eac855
Commit
58eac855
authored
Nov 18, 2021
by
Désirée Chevalier
Committed by
Mark Lapierre
Nov 18, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky group iteration e2e spec
parent
63d7b0b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
qa/qa/ee/resource/group_cadence.rb
qa/qa/ee/resource/group_cadence.rb
+1
-3
qa/qa/specs/features/ee/browser_ui/2_plan/iterations/create_group_iteration_spec.rb
...owser_ui/2_plan/iterations/create_group_iteration_spec.rb
+6
-6
No files found.
qa/qa/ee/resource/group_cadence.rb
View file @
58eac855
...
@@ -6,11 +6,9 @@ module QA
...
@@ -6,11 +6,9 @@ module QA
class
GroupCadence
<
QA
::
Resource
::
Base
class
GroupCadence
<
QA
::
Resource
::
Base
include
Support
::
Dates
include
Support
::
Dates
attr_accessor
:title
,
:group
attribute
:group
do
attribute
:group
do
QA
::
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
QA
::
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
group
.
path
=
"group-to-test-iterations-
#{
SecureRandom
.
hex
(
8
)
}
"
group
.
path
=
"group-to-test-iteration
-cadence
s-
#{
SecureRandom
.
hex
(
8
)
}
"
end
end
end
end
...
...
qa/qa/specs/features/ee/browser_ui/2_plan/iterations/create_group_iteration_spec.rb
View file @
58eac855
...
@@ -11,22 +11,22 @@ module QA
...
@@ -11,22 +11,22 @@ module QA
let
(
:due_date
)
{
next_month_yyyy_mm_dd
}
let
(
:due_date
)
{
next_month_yyyy_mm_dd
}
let
(
:description
)
{
"This is a group test iteration."
}
let
(
:description
)
{
"This is a group test iteration."
}
let
(
:
group
)
do
let
!
(
:iteration_
group
)
do
QA
::
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
QA
::
Resource
::
Group
.
fabricate_via_api!
do
|
group
|
group
.
path
=
"group-to-test-
iterations
-cadences-
#{
SecureRandom
.
hex
(
8
)
}
"
group
.
path
=
"group-to-test-
creating-iteration
-cadences-
#{
SecureRandom
.
hex
(
8
)
}
"
end
end
end
end
before
do
before
do
Runtime
::
Feature
.
enable
(
:iteration_cadences
,
group:
group
)
Runtime
::
Feature
.
enable
(
:iteration_cadences
,
group:
iteration_
group
)
Flow
::
Login
.
sign_in
Flow
::
Login
.
sign_in
end
end
it
'creates a group iteration'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1623'
do
it
'creates a group iteration'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/quality/test_cases/1623'
do
# TODO: Remove this retry when the `Runtime::Feature.enable` method call is removed
# TODO: Remove this retry when the `Runtime::Feature.enable` method call is removed
Support
::
Retrier
.
retry_
on_exception
(
max_attempts
:
5
)
do
Support
::
Retrier
.
retry_
until
(
max_duration:
60
,
retry_on_exception:
true
,
sleep_interval
:
5
)
do
group
.
visit!
iteration_
group
.
visit!
QA
::
Page
::
Group
::
Menu
.
perform
(
&
:go_to_group_iterations
)
QA
::
Page
::
Group
::
Menu
.
perform
(
&
:go_to_group_iterations
)
QA
::
EE
::
Page
::
Group
::
Iteration
::
Cadence
::
Index
.
perform
do
|
cadence
|
QA
::
EE
::
Page
::
Group
::
Iteration
::
Cadence
::
Index
.
perform
do
|
cadence
|
cadence
.
find_element
(
:create_new_cadence_button
)
cadence
.
find_element
(
:create_new_cadence_button
)
...
@@ -38,7 +38,7 @@ module QA
...
@@ -38,7 +38,7 @@ module QA
iteration
.
description
=
description
iteration
.
description
=
description
iteration
.
due_date
=
due_date
iteration
.
due_date
=
due_date
iteration
.
start_date
=
start_date
iteration
.
start_date
=
start_date
iteration
.
group
=
group
iteration
.
group
=
iteration_
group
end
end
EE
::
Page
::
Group
::
Iteration
::
Show
.
perform
do
|
iteration
|
EE
::
Page
::
Group
::
Iteration
::
Show
.
perform
do
|
iteration
|
...
...
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