mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
commit
a91d662194
@ -21,14 +21,6 @@ describe('Darkwire', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach((client, done) => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach((client, done) => {
|
|
||||||
done();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('Should show welcome modal', () => {
|
it('Should show welcome modal', () => {
|
||||||
browser
|
browser
|
||||||
.waitForElementVisible('#first-modal', 5000)
|
.waitForElementVisible('#first-modal', 5000)
|
||||||
@ -80,7 +72,7 @@ describe('Darkwire', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Should send a message', (client) => {
|
it('Should send a message', () => {
|
||||||
browser.windowHandles((result) => {
|
browser.windowHandles((result) => {
|
||||||
browser.switchWindow(result.value[0], () => {
|
browser.switchWindow(result.value[0], () => {
|
||||||
browser
|
browser
|
||||||
@ -133,6 +125,23 @@ describe('Darkwire', () => {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('/clear', () => {
|
||||||
|
|
||||||
|
before((client, done) => {
|
||||||
|
browser
|
||||||
|
.waitForElementPresent('textarea.inputMessage', 5000)
|
||||||
|
.clearValue('textarea.inputMessage')
|
||||||
|
.setValue('textarea.inputMessage', ['/clear', browser.Keys.RETURN], () => {
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
it('Should clear chat buffer', () => {
|
||||||
|
browser.waitForElementNotPresent('.messages li', 5000);
|
||||||
|
});
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Before file transfer: Image: Confirm sending', () => {
|
describe('Before file transfer: Image: Confirm sending', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user