Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Frontend
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
384
Merge Requests
65
CI / CD
Security & Compliance
Packages
Analytics
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Frontend
Commits
07d10032
Commit
07d10032
authored
5 minutes ago
by
Ben Hayward
Browse files
Options
Download
Updated comment tests to reduce flake
parent
4b675951
fix/cypress-ssr-2539
1 merge request
!765
Fixed broken E2E tests. #2539
Pipeline
#115626637
running with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
cypress/integration/comments/comment-threads.spec.js
View file @
07d10032
...
...
@@ -6,7 +6,7 @@ import generateRandomId from '../../support/utilities';
* @modify date 2019-08-09 14:42:51
* @desc Spec tests for comment threads.
*/
context
(
'
Comment Threads
'
,
()
=>
{
context
.
only
(
'
Comment Threads
'
,
()
=>
{
const
testUsername
=
generateRandomId
();
const
testPassword
=
generateRandomId
()
+
'
rR.7
'
;
...
...
@@ -34,6 +34,7 @@ context('Comment Threads', () => {
const
thumbsUpButton
=
'
[data-cy=data-minds-thumbs-up-button]
'
const
thumbsDownButton
=
'
[data-cy=data-minds-thumbs-down-button]
'
before
(()
=>
{
//make a post new.
cy
.
getCookie
(
'
minds_sess
'
)
...
...
@@ -118,10 +119,25 @@ context('Comment Threads', () => {
// thumbs up and down
cy
.
get
(
thumbsUpButton
)
.
click
({
multiple
:
true
});
.
each
((
button
)
=>
{
cy
.
wrap
(
button
)
.
click
()
.
wait
(
'
@thumbsPut
'
)
.
then
(
xhr
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
});
});
// thumbs up and down
cy
.
get
(
thumbsDownButton
)
.
click
({
multiple
:
true
});
.
each
((
button
)
=>
{
cy
.
wrap
(
button
).
click
()
.
wait
(
'
@thumbsPut
'
)
.
then
(
xhr
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
});
});
// check counters
cy
.
get
(
thumbsUpCounters
)
...
...
This diff is collapsed.
Please
register
or
sign in
to comment