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
8b8415fb
Commit
8b8415fb
authored
Apr 13, 2021
by
Désirée Chevalier
Committed by
Sanad Liaquat
Apr 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add transient spec for discussion comments
parent
d05c4f0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
qa/qa/specs/features/browser_ui/2_plan/transient/comment_on_discussion_spec.rb
...browser_ui/2_plan/transient/comment_on_discussion_spec.rb
+48
-0
No files found.
qa/qa/specs/features/browser_ui/2_plan/transient/comment_on_discussion_spec.rb
0 → 100644
View file @
8b8415fb
# frozen_string_literal: true
module
QA
RSpec
.
describe
'Plan'
,
:transient
do
describe
'Discussion comments transient bugs'
do
let
(
:user1
)
do
Resource
::
User
.
fabricate_or_use
(
Runtime
::
Env
.
gitlab_qa_username_1
,
Runtime
::
Env
.
gitlab_qa_password_1
)
end
let
(
:my_first_reply
)
{
'This is my first reply'
}
let
(
:my_second_reply
)
{
"@
#{
Runtime
::
Env
.
gitlab_qa_username_1
}
"
}
let
(
:my_third_reply
)
{
"@
#{
Runtime
::
Env
.
gitlab_qa_username_1
}
This is my third reply"
}
let
(
:my_fourth_reply
)
{
'/close'
}
before
do
Flow
::
Login
.
sign_in
end
it
'comments with mention on a discussion in an issue'
,
testcase:
'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1753'
do
Runtime
::
Env
.
transient_trials
.
times
do
|
i
|
QA
::
Runtime
::
Logger
.
info
(
"Transient bug test action - Trial
#{
i
}
"
)
Resource
::
Issue
.
fabricate_via_api!
.
visit!
Page
::
Project
::
Issue
::
Show
.
perform
do
|
issue_page
|
issue_page
.
select_all_activities_filter
issue_page
.
start_discussion
(
'My first discussion'
)
issue_page
.
reply_to_discussion
(
1
,
my_first_reply
)
expect
(
issue_page
).
to
have_comment
(
my_first_reply
)
issue_page
.
reply_to_discussion
(
1
,
my_second_reply
)
expect
(
issue_page
).
to
have_comment
(
my_second_reply
)
issue_page
.
reply_to_discussion
(
1
,
my_third_reply
)
expect
(
issue_page
).
to
have_comment
(
my_third_reply
)
issue_page
.
reply_to_discussion
(
1
,
my_fourth_reply
)
expect
(
issue_page
).
to
have_system_note
(
'closed'
)
end
end
end
end
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