mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 10:49:02 +00:00
Test for /clear
This commit is contained in:
parent
5e67fad28f
commit
f2ef76323d
@ -133,6 +133,24 @@ describe('Darkwire', () => {
|
||||
|
||||
});
|
||||
|
||||
describe('/clear', () => {
|
||||
|
||||
before((client, done) => {
|
||||
browser
|
||||
.waitForElementPresent('textarea.inputMessage', 5000)
|
||||
.clearValue('textarea.inputMessage')
|
||||
.setValue('textarea.inputMessage', ['/clear', browser.Keys.RETURN])
|
||||
.waitForElementNotPresent('span.messageBody', 5000, () => {
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
it('Should clear chat buffer', () => {
|
||||
browser.assert.containsText('div.chatArea', '');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('Before file transfer: Image: Confirm sending', () => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user