tests finalise

pull/1077/head
Vincent 5 years ago
parent 5eb49764b3
commit cc3e03c5e4

@ -64,7 +64,6 @@ module.exports = {
// a wrapper to work around electron/spectron bug
async setValueWrapper(app, selector, value) {
await app.client.element(selector).click();
// keys, setValue and addValue hang on certain platforms
if (process.platform === 'darwin') {

@ -58,7 +58,7 @@ describe('Message Functions', function() {
await app.client.waitForExist(
ConversationPage.existingSendMessageText(messageText),
5000
6000
);
await app2.client.waitForExist(
ConversationPage.existingReceivedMessageText(messageText),
@ -74,7 +74,7 @@ describe('Message Functions', function() {
// delete messaage from modal
await app.client.waitForExist(
ConversationPage.deleteMessageModalButton,
3000
5000
);
await app.client.element(ConversationPage.deleteMessageModalButton).click();

@ -50,10 +50,9 @@ describe('Open groups', function() {
.eventually.be.false;
// validate open chat has been added
await app.client.waitForExist(
ConversationPage.rowOpenGroupConversationName(name),
4000
);
await app.client.isExisting(
ConversationPage.rowOpenGroupConversationName(name)
).should.eventually.be.true;
}
it('openGroup: works with valid open group url', async () => {

@ -106,10 +106,15 @@ describe('Settings', function() {
await app.client.keys('Enter');
// Verify password removed
// Verify password removed with toast
await app.client.waitForExist(
CommonPage.toastWithText('Removed Password'),
2000
);
// Verify password actully removed
await app.client.isExisting(
CommonPage.divWithClass('session-settings__password-lock')
).should.eventually.be.false;
});
});

Loading…
Cancel
Save