diff --git a/test/helpers/actions.ts b/test/helpers/actions.ts index 45db991..d470466 100644 --- a/test/helpers/actions.ts +++ b/test/helpers/actions.ts @@ -334,8 +334,8 @@ export async function swipeFullScreen(direction: Direction) { endY = height * 0.2; break; case 'down': - startY = height * 0.2; - endY = height * 0.8; + startY = height * 0.1; + endY = height * 0.9; break; } @@ -347,8 +347,7 @@ export async function swipeFullScreen(direction: Direction) { actions: [ { type: 'pointerMove', duration: 0, x: startX, y: startY }, { type: 'pointerDown', button: 0 }, - { type: 'pause', duration: 50 }, - { type: 'pointerMove', duration: 200, x: endX, y: endY }, + { type: 'pointerMove', duration: 100, x: endX, y: endY }, { type: 'pointerUp', button: 0 }, ], }, diff --git a/test/specs/settings.e2e.ts b/test/specs/settings.e2e.ts index e98ec85..09e55a2 100644 --- a/test/specs/settings.e2e.ts +++ b/test/specs/settings.e2e.ts @@ -272,6 +272,8 @@ describe('@settings - Settings', () => { await sleep(1000); await tap('BackupWallet'); await sleep(1000); // animation + await tap('BackupIntroViewContinue'); // proceed past backup intro screen + await sleep(1000); // get the seed from SeedContainer const seedElement = await elementById('SeedContainer'); diff --git a/wdio.conf.ts b/wdio.conf.ts index 7f5dad1..c6720c7 100644 --- a/wdio.conf.ts +++ b/wdio.conf.ts @@ -62,8 +62,8 @@ export const config: WebdriverIO.Config = { ? { platformName: 'Android', 'appium:automationName': 'UiAutomator2', - 'appium:deviceName': 'Pixel_6', - 'appium:platformVersion': '13.0', + 'appium:deviceName': process.env.DEVICE_NAME || 'Pixel_6', + 'appium:platformVersion': process.env.PLATFORM_VERSION || '15', 'appium:app': path.join(__dirname, 'aut', 'bitkit_e2e.apk'), // 'appium:app': path.join(__dirname, 'aut', 'bitkit_v1.1.2.apk'), 'appium:autoGrantPermissions': true, @@ -136,7 +136,17 @@ export const config: WebdriverIO.Config = { // Services take over a specific job you don't want to take care of. They enhance // your test setup with almost no effort. Unlike plugins, they don't add new // commands. Instead, they hook themselves up into the test process. - services: ['appium'], + services: [ + [ + 'appium', + { + args: { + port: 4723, + }, + command: 'appium', + }, + ], + ], // Framework you want to run your specs with. // The following are supported: Mocha, Jasmine, and Cucumber