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
401
Merge Requests
64
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
ebdd701c
Commit
ebdd701c
authored
2 hours ago
by
Ben Hayward
Browse files
Options
Download
Indentation fix that was causing within closure to be exited prematurely
parent
07d10032
fix/cypress-ssr-2539
1 merge request
!765
Fixed broken E2E tests. #2539
Pipeline
#116021785
failed with stages
in 31 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
cypress/integration/comments/comment-threads.spec.js
View file @
ebdd701c
...
...
@@ -117,39 +117,39 @@ context.only('Comment Threads', () => {
// avoids clicking thumbs in activity feed.
cy
.
get
(
'
.m-comment__toolbar
'
).
within
((
$list
)
=>
{
// thumbs up and down
cy
.
get
(
thumbsUpButton
)
.
each
((
button
)
=>
{
cy
.
wrap
(
button
)
.
click
()
// thumbs up and down
cy
.
get
(
thumbsUpButton
)
.
each
((
button
)
=>
{
cy
.
wrap
(
button
)
.
click
()
.
wait
(
'
@thumbsPut
'
)
.
then
(
xhr
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
});
});
// thumbs up and down
cy
.
get
(
thumbsDownButton
)
.
each
((
button
)
=>
{
cy
.
wrap
(
button
).
click
()
.
wait
(
'
@thumbsPut
'
)
.
then
(
xhr
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
});
});
// thumbs up and down
cy
.
get
(
thumbsDownButton
)
.
each
((
button
)
=>
{
cy
.
wrap
(
button
).
click
()
.
wait
(
'
@thumbsPut
'
)
.
then
(
xhr
=>
{
expect
(
xhr
.
status
).
to
.
equal
(
200
);
});
});
// check counters
cy
.
get
(
thumbsUpCounters
)
.
each
((
counter
)
=>
{
expect
(
counter
[
0
].
innerHTML
).
to
.
eql
(
'
1
'
);
});
// check counters
cy
.
get
(
thumbsUpCounters
)
cy
.
get
(
thumbsDownCounters
)
.
each
((
counter
)
=>
{
expect
(
counter
[
0
].
innerHTML
).
to
.
eql
(
'
1
'
);
});
});
cy
.
get
(
thumbsDownCounters
)
.
each
((
counter
)
=>
{
expect
(
counter
[
0
].
innerHTML
).
to
.
eql
(
'
1
'
);
});
});
it
(
'
should allow the user to make a mature comment
'
,
()
=>
{
...
...
This diff is collapsed.
Please
register
or
sign in
to comment