Skip to content

Commit

Permalink
Merge branch 'master' into 2651-upgrade-openpgp-to-v6
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanmo226 authored Jan 20, 2025
2 parents 17fc004 + 3fc3a23 commit a58378e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Core/source/lib/emailjs/emailjs-mime-codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
});
} else if (typeof exports === 'object' && typeof navigator !== 'undefined') {
// common.js for browser
encoding = require('emailjs-stringencoding');
encoding = require('./emailjs-stringencoding');
module.exports = factory(encoding.TextEncoder, encoding.TextDecoder, root.btoa);
} else if (typeof exports === 'object') {
// common.js for node.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,6 @@ extension ComposeViewController {
}
return isValid
}
.onShouldEndEditing { [weak self] textField in
return self?.showAlertIfTextFieldNotValidEmail(textField: textField) ?? true
}
.onShouldChangeCharacters { [weak self] textField, character in
self?.shouldChange(with: textField, and: character, for: type) ?? true
}
Expand Down
1 change: 1 addition & 0 deletions appium/tests/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ export const CommonData = {
'\n' +
'This will likely download a corrupted file. Download anyway?',
invalidRecipient: 'Invalid recipient\nPlease enter a valid email address.',
oneOrMoreInvalidRecipient: 'One or more of your recipients have invalid email address (marked in red)',
decryptMessageWithNoKeys:
'Error\n' +
'Could not open message\n\n' +
Expand Down
14 changes: 1 addition & 13 deletions appium/tests/helpers/TouchHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,7 @@ class TouchHelper {
};

static tapScreenAt = async ({ x, y }: { x: number; y: number }) => {
await driver.performActions([
{
id: 'tapScreenAt',
type: 'pointer',
parameters: { pointerType: 'touch' },
actions: [
{ duration: 0, x, y, type: 'pointerMove', origin: 'viewport' },
{ button: 0, type: 'pointerDown' },
{ type: 'pause', duration: 100 },
{ button: 0, type: 'pointerUp' },
],
},
]);
await driver.execute('mobile: tap', { x, y });
await browser.pause(100);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ describe('COMPOSE EMAIL: ', () => {
};

const invalidRecipientError = CommonData.errors.invalidRecipient;
const oneOrMoreInvalidRecipientError = CommonData.errors.oneOrMoreInvalidRecipient;

await mockApi.withMockedApis(async () => {
await SplashScreen.mockLogin();
Expand All @@ -42,7 +43,7 @@ describe('COMPOSE EMAIL: ', () => {
await BaseScreen.clickOkButtonOnError();

await NewMessageScreen.clickSendButton();
await BaseScreen.checkModalMessage(invalidRecipientError);
await BaseScreen.checkModalMessage(oneOrMoreInvalidRecipientError);
await BaseScreen.clickOkButtonOnError();
});
});
Expand Down

0 comments on commit a58378e

Please sign in to comment.