Skip to content

Commit

Permalink
fix: upgrade appium, bump timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
charliecruzan-stripe committed Feb 2, 2022
1 parent 772eff2 commit 50d017d
Show file tree
Hide file tree
Showing 7 changed files with 102 additions and 39 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
run: npm install react-native-cli

- name: Install Dependencies
run: |
yarn bootstrap
run: yarn bootstrap

- name: Gradle cache
uses: actions/cache@v2
Expand Down Expand Up @@ -107,12 +106,10 @@ jobs:
node-version: 14.15.0

- name: Install React Native CLI
run: |
npm install react-native-cli
run: npm install react-native-cli

- name: Install Dependencies
run: |
yarn bootstrap
run: yarn bootstrap

- name: Build iOS App
run: |
Expand Down
30 changes: 15 additions & 15 deletions e2e/payments.test.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('Bancontact Payment');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -33,7 +33,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('Bancontact SEPA Direct Debit set up');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]', buttonText: 'Save' });
BasicPaymentScreen.authorize();
Expand All @@ -45,7 +45,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('EPS');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -57,7 +57,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('FPX');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });

Expand All @@ -74,7 +74,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('Przelewy24');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -86,7 +86,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('giropay');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -98,7 +98,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('iDEAL payment');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({
email: '[email protected]',
Expand All @@ -113,7 +113,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('iDEAL SEPA Direct Debit set up');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({
email: '[email protected]',
Expand All @@ -130,7 +130,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('Sofort');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -142,7 +142,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Bank redirects');
homeScreen.goTo('Sofort SEPA Direct Debit set up');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]', buttonText: 'Save' });
BasicPaymentScreen.authorize();
Expand All @@ -165,7 +165,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Vouchers');
homeScreen.goTo('OXXO');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
driver.pause(3000);
Expand All @@ -180,7 +180,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Wallets');
homeScreen.goTo('Alipay');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -192,7 +192,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('Wallets');
homeScreen.goTo('GrabPay');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({ email: '[email protected]' });
BasicPaymentScreen.authorize();
Expand All @@ -204,7 +204,7 @@ describe('Example app payments scenarios (android)', () => {
homeScreen.goTo('More payment scenarios');
homeScreen.goTo('Recollect a CVC');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

getTextInputByPlaceholder('E-mail').setValue('[email protected]');
getTextInputByPlaceholder('CVC').setValue('123');
Expand All @@ -215,7 +215,7 @@ describe('Example app payments scenarios (android)', () => {
driver.back();
const alert = getElementByText('Success');
alert.waitForDisplayed({
timeout: 15000,
timeout: 30000,
});
expect(alert.getText()).toEqual('Success');
});
Expand Down
16 changes: 8 additions & 8 deletions e2e/payments.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Example app payments scenarios (common)', () => {
// homeScreen.goTo('Wallets');
// homeScreen.goTo('WeChat Pay');

// $('~payment-screen').waitForDisplayed({ timeout: 15000 });
// $('~payment-screen').waitForDisplayed({ timeout: 30000 });

// BasicPaymentScreen.pay({ email: '[email protected]' });

Expand Down Expand Up @@ -65,7 +65,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('Bank Debits');
homeScreen.goTo('BECS Direct Debit set up');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BECSForm.setName('stripe');
BECSForm.setEmail('[email protected]');
Expand All @@ -89,7 +89,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('Bank Debits');
homeScreen.goTo('SEPA Direct Debit payment');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({
email: '[email protected]',
Expand All @@ -103,7 +103,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('Bank Debits');
homeScreen.goTo('SEPA Direct Debit set up');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

BasicPaymentScreen.pay({
email: '[email protected]',
Expand All @@ -118,7 +118,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('Accept a payment');
homeScreen.goTo('Card element only');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

cardField.setCardNumber('4242424242424242');
cardField.setExpiryDate('12/22');
Expand All @@ -140,7 +140,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('More payment scenarios');
homeScreen.goTo('Set up future payments');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

getTextInputByPlaceholder('E-mail').setValue('[email protected]');

Expand All @@ -161,7 +161,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('More payment scenarios');
homeScreen.goTo('Finalize payments on the server');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

cardField.setCardNumber('4242424242424242');
cardField.setExpiryDate('12/22');
Expand All @@ -180,7 +180,7 @@ describe('Example app payments scenarios (common)', () => {
homeScreen.goTo('More payment scenarios');
homeScreen.goTo('Recollect a CVC');

$('~payment-screen').waitForDisplayed({ timeout: 15000 });
$('~payment-screen').waitForDisplayed({ timeout: 30000 });

getTextInputByPlaceholder('E-mail').setValue('[email protected]');
getTextInputByPlaceholder('CVC').setValue('123');
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@wdio/mocha-framework": "^7.5.3",
"@wdio/spec-reporter": "^7.5.7",
"@wdio/sync": "^7.5.7",
"appium": "^1.21.0",
"appium": "^1.22.1",
"appium-chromedriver": "4.26.2",
"appium-doctor": "^1.16.0",
"commitlint": "^8.3.5",
Expand Down
2 changes: 1 addition & 1 deletion wdio.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ exports.config = {
{
maxInstances: 1,
browserName: '',
appiumVersion: '1.21.0',
appiumVersion: '1.22.1',
platformVersion: '',
platformName: 'Android',
deviceName: '',
Expand Down
2 changes: 1 addition & 1 deletion wdio.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.config = {
{
maxInstances: 1,
browserName: '',
appiumVersion: '1.20.2',
appiumVersion: '1.22.1',
platformVersion: '15.2',
platformName: 'iOS',
deviceName: 'iPhone 12',
Expand Down
80 changes: 73 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3220,6 +3220,11 @@
"@wdio/types" "7.8.0"
p-iteration "^1.1.8"

"@xmldom/xmldom@^0.x":
version "0.8.0"
resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.0.tgz#9f83fd9b3506c9603baad67e44eb6e6ee8eee0ce"
integrity sha512-7wVnF+rKrVDEo1xjzkkidTG0grclaVnX0vKa0z9JSXcEdtftUJjvU33jLGg6SHyvs3eeqEsI7jZ6NxYfRypEEg==

JSONStream@^1.0.4:
version "1.3.5"
resolved "https://registry.yarnpkg.com/JSONStream/-/JSONStream-1.3.5.tgz#3208c1f08d3a4d99261ab64f92302bc15e111ca0"
Expand Down Expand Up @@ -3733,6 +3738,18 @@ appium-ios-device@^1.5.0, appium-ios-device@^1.7.0, appium-ios-device@^1.7.1:
semver "^7.0.0"
source-map-support "^0.5.5"

appium-ios-device@^1.8.0:
version "1.8.0"
resolved "https://registry.yarnpkg.com/appium-ios-device/-/appium-ios-device-1.8.0.tgz#268801421719ba17c86eab6125e29dd4de553c87"
integrity sha512-l4PVO0RSCsgd9wLiHhpBOlCP2wM0ND3+9+UMKP72c3qaaC2JxEqiKNIoc0r/jW7D5/Aoh/MtTT2yFHvqtZ0r/Q==
dependencies:
"@babel/runtime" "^7.0.0"
appium-support "^2.35.0"
bluebird "^3.1.1"
lodash "^4.17.15"
semver "^7.0.0"
source-map-support "^0.5.5"

[email protected]:
version "4.8.3"
resolved "https://registry.yarnpkg.com/appium-ios-driver/-/appium-ios-driver-4.8.3.tgz#4b0423188b2e354dd6c24a0b9f7b1f08589df00d"
Expand Down Expand Up @@ -3967,6 +3984,24 @@ appium-webdriveragent@^3.12.0:
source-map-support "^0.5.12"
teen_process "^1.14.1"

appium-webdriveragent@^3.16.0:
version "3.16.0"
resolved "https://registry.yarnpkg.com/appium-webdriveragent/-/appium-webdriveragent-3.16.0.tgz#cc2deeb258e619b7a63cc5e90b77358a32bd44fe"
integrity sha512-9yL5s48GqiQBqwwgmzgGk8BUAYZqmAvdVFoVwU/UcEeg6VvXA8UxwuFU087UmbzxF6XeJZDgI3Aa96kFEt2UjA==
dependencies:
"@babel/runtime" "^7.0.0"
appium-base-driver "^7.0.0"
appium-ios-simulator "^3.14.0"
appium-support "^2.46.0"
async-lock "^1.0.0"
asyncbox "^2.5.3"
axios "^0.x"
bluebird "^3.5.5"
lodash "^4.17.11"
node-simctl "^6.0.2"
source-map-support "^0.5.12"
teen_process "^1.14.1"

[email protected]:
version "1.19.0"
resolved "https://registry.yarnpkg.com/appium-windows-driver/-/appium-windows-driver-1.19.0.tgz#ba973c5e0631ce64759a0e1bcf3f659a1fb30961"
Expand Down Expand Up @@ -3996,7 +4031,7 @@ appium-xcode@^3.0.0, appium-xcode@^3.1.0, appium-xcode@^3.8.0:
source-map-support "^0.5.5"
teen_process "^1.3.0"

appium-xcuitest-driver@^3.17.0, appium-xcuitest-driver@^3.27.4, appium-xcuitest-driver@^3.27.6:
appium-xcuitest-driver@^3.17.0, appium-xcuitest-driver@^3.27.4:
version "3.50.2"
resolved "https://registry.yarnpkg.com/appium-xcuitest-driver/-/appium-xcuitest-driver-3.50.2.tgz#535421ea4f562593a97358269c845ef2a56ed9a4"
integrity sha512-SusAuTj6ESKrCC60tUwhjYpAs9Re2TyMD5RuUKDe7L10Zg+YqxaFicrLXhao3B1eRjhbP1of/bn2Q6ZK8Zvjww==
Expand Down Expand Up @@ -4026,6 +4061,37 @@ appium-xcuitest-driver@^3.17.0, appium-xcuitest-driver@^3.27.4, appium-xcuitest-
ws "^8.0.0"
xmldom "^0.x"

appium-xcuitest-driver@^3.59.0:
version "3.62.0"
resolved "https://registry.yarnpkg.com/appium-xcuitest-driver/-/appium-xcuitest-driver-3.62.0.tgz#fe0170fca15bf4904561022b812354fcbac6ba18"
integrity sha512-ABF1bIZfLA3ufO84LJlWeNVMHnooBuVh02scGIyEJwEqN5LDDqcJmg33CRlQTTQMu3jbEII6hiwd1VUAdDf+4w==
dependencies:
"@babel/runtime" "^7.0.0"
"@xmldom/xmldom" "^0.x"
appium-base-driver "^7.0.0"
appium-idb "^0.x"
appium-ios-device "^1.8.0"
appium-ios-simulator "^3.28.0"
appium-remote-debugger "^8.13.2"
appium-support "^2.47.1"
appium-webdriveragent "^3.16.0"
appium-xcode "^3.8.0"
async-lock "^1.0.0"
asyncbox "^2.3.1"
bluebird "^3.5.1"
css-selector-parser "^1.4.1"
js2xmlparser2 "^0.x"
lodash "^4.17.10"
lru-cache "^6.0.0"
moment "^2.24.0"
moment-timezone "^0.x"
node-simctl "^6.4.0"
portscanner "2.2.0"
semver "^7.0.0"
source-map-support "^0.x"
teen_process "^1.14.0"
ws "^8.0.0"

appium-youiengine-driver@^1.2.8:
version "1.2.9"
resolved "https://registry.yarnpkg.com/appium-youiengine-driver/-/appium-youiengine-driver-1.2.9.tgz#cf1e1282ed411d9d449d3c2d94b4958b1ed49cd4"
Expand All @@ -4047,10 +4113,10 @@ appium-youiengine-driver@^1.2.8:
source-map-support "^0.5.19"
teen_process "^1.15.0"

appium@^1.21.0:
version "1.21.0"
resolved "https://registry.yarnpkg.com/appium/-/appium-1.21.0.tgz#7d0aba93065f2a583e33c510187b28d4fc3f2e0a"
integrity sha512-aSFz8Bu7hzvNPFYeYlJbCFh8mSCu1S4tkDXTs077PdgKIg8mMdPLzZR1nZtsmdhNpLCdobPWJqPBJ+9xXfVYQA==
appium@^1.22.1:
version "1.22.2"
resolved "https://registry.yarnpkg.com/appium/-/appium-1.22.2.tgz#07e1c898689f6e3833e36c9c2523d3cc14c54680"
integrity sha512-ihIfMmLyCB8IWIvtrOcpR4Z8KX4ONcxvyqgrND49bdsYMo6xKP8AFYOb4wfuWOnJvTRdHXWYBGzR6EAoyC6Cxw==
dependencies:
"@babel/runtime" "^7.6.0"
appium-android-driver "^4.20.0"
Expand All @@ -4067,7 +4133,7 @@ appium@^1.21.0:
appium-tizen-driver "^1.1.1-beta.4"
appium-uiautomator2-driver "^1.37.1"
appium-windows-driver "1.x"
appium-xcuitest-driver "^3.27.6"
appium-xcuitest-driver "^3.59.0"
appium-youiengine-driver "^1.2.8"
argparse "^2.0.1"
async-lock "^1.0.0"
Expand Down Expand Up @@ -9318,7 +9384,7 @@ js-yaml@^3.13.1:
argparse "^1.0.7"
esprima "^4.0.0"

js2xmlparser2@^0.2.0:
js2xmlparser2@^0.2.0, js2xmlparser2@^0.x:
version "0.2.0"
resolved "https://registry.yarnpkg.com/js2xmlparser2/-/js2xmlparser2-0.2.0.tgz#a7ca2089b83d02331d631892dd6743864125033f"
integrity sha1-p8ogibg9AjMdYxiS3WdDhkElAz8=
Expand Down

0 comments on commit 50d017d

Please sign in to comment.