Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
0
Merge Requests
0
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
converse.js
Commits
279a6e6c
Commit
279a6e6c
authored
Jun 03, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase test timeouts
parent
1ff6ced3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
spec/muc.js
spec/muc.js
+1
-2
spec/retractions.js
spec/retractions.js
+4
-4
No files found.
spec/muc.js
View file @
279a6e6c
...
...
@@ -5057,8 +5057,7 @@ describe("Groupchats", function () {
await
view
.
model
.
handleMessageStanza
(
msg
);
await
new
Promise
(
resolve
=>
view
.
model
.
messages
.
once
(
'
rendered
'
,
resolve
),
1000
);
const
messages
=
view
.
el
.
querySelectorAll
(
'
.message
'
);
expect
(
messages
.
length
).
toBe
(
2
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.message
'
).
length
===
2
);
expect
(
view
.
el
.
querySelectorAll
(
'
.chat-msg
'
).
length
).
toBe
(
1
);
expect
(
view
.
el
.
querySelector
(
'
.chat-msg .chat-msg__text
'
).
textContent
.
trim
()).
toBe
(
'
hello world
'
);
...
...
spec/retractions.js
View file @
279a6e6c
...
...
@@ -671,10 +671,10 @@ describe("Message Retractions", function () {
occupant
.
save
(
'
role
'
,
'
member
'
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelector
(
'
.chat-content__notifications
'
).
textContent
.
includes
(
"
romeo is no longer a moderator
"
));
const
retraction_stanza
=
await
sendAndThenRetractMessage
(
_converse
,
view
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg--retracted
'
).
length
===
1
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg--retracted
'
).
length
===
1
,
1000
);
expect
(
view
.
model
.
messages
.
length
).
toBe
(
1
);
await
u
.
waitUntil
(()
=>
view
.
model
.
messages
.
last
().
get
(
'
retracted
'
));
await
u
.
waitUntil
(()
=>
view
.
model
.
messages
.
last
().
get
(
'
retracted
'
)
,
1000
);
const
el
=
view
.
el
.
querySelector
(
'
.chat-msg--retracted .chat-msg__message div
'
);
expect
(
el
.
textContent
.
trim
()).
toBe
(
'
romeo has removed this message
'
);
...
...
@@ -694,8 +694,8 @@ describe("Message Retractions", function () {
</message>`
);
_converse
.
connection
.
_dataRecv
(
mock
.
createRequest
(
error
));
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg__error
'
).
length
===
1
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg--retracted
'
).
length
===
0
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg__error
'
).
length
===
1
,
1000
);
await
u
.
waitUntil
(()
=>
view
.
el
.
querySelectorAll
(
'
.chat-msg--retracted
'
).
length
===
0
,
1000
);
expect
(
view
.
model
.
messages
.
length
).
toBe
(
1
);
expect
(
view
.
model
.
messages
.
at
(
0
).
get
(
'
retracted
'
)).
toBeFalsy
();
expect
(
view
.
model
.
messages
.
at
(
0
).
get
(
'
is_ephemeral
'
)).
toBeFalsy
();
...
...
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