-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb38ef0
commit 65b3575
Showing
128 changed files
with
79 additions
and
25 deletions.
There are no files selected for viewing
Binary file added
BIN
+159 KB
...8-34Z/✗ AddPaymentMethodsScreen should enter payment info and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
.../✗ AddPaymentMethodsScreen should enter payment info and save/testFnFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...-34Z/✗ AddPaymentMethodsScreen should enter payment info and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...ddPaymentMethodsScreen should enter payment info and save/beforeEachFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...9-03Z/✗ AddPaymentMethodsScreen should enter payment info and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...-03Z/✗ AddPaymentMethodsScreen should enter payment info and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...✗ AddPaymentMethodsScreen should go to add payment screen/beforeEachFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...3-39-03Z/✗ AddPaymentMethodsScreen should go to add payment screen/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...-39-03Z/✗ AddPaymentMethodsScreen should go to add payment screen/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 KB
...en Tests should fill email and password inputs and log the user in/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+126 KB
...sts should fill email and password inputs and log the user in/testFnFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...n Tests should fill email and password inputs and log the user in/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.9 KB
...en should go to add payment screen, add payment, and save/beforeEachFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.9 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...en should go to add payment screen, add payment, and save/beforeEachFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...en should go to add payment screen, add payment, and save/beforeEachFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+145 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
...Screen should go to add payment screen, add payment, and save/testFnFailure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+140 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+159 KB
...Screen should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+141 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...en should go to add payment screen, add payment, and save/beforeEachFailure.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+141 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+159 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...Screen should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+15.5 KB
...thodsScreen should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...Screen should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...hodsScreen should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+156 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+156 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+136 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+158 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+319 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+319 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+320 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+320 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+103 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+115 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+115 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+116 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+106 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+104 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+126 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+126 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+104 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+146 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+142 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+142 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+105 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+152 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+152 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+91 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
Binary file added
BIN
+115 KB
...ayment test should go to add payment screen, add payment, and save/testDone.png
Oops, something went wrong.
Binary file added
BIN
+90.7 KB
...t test should go to add payment screen, add payment, and save/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+90.7 KB
...yment test should go to add payment screen, add payment, and save/testStart.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
const TIMEOUT = 10000; | ||
import loginUser from "./loginUser"; | ||
|
||
async function tapVisibleButton(buttonId) { | ||
await waitFor(element(by.id(buttonId))).toBeVisible().withTimeout(TIMEOUT); | ||
await element(by.id(buttonId)).tap(); | ||
} | ||
|
||
describe('Add payment test', () => { | ||
beforeEach(async () => { | ||
await device.launchApp({newInstance: true}); | ||
}); | ||
|
||
it('should go to add payment screen, add payment, and save', async () => { | ||
await loginUser(); | ||
console.log("Logged in"); | ||
await waitFor(element(by.id('home-screen'))) | ||
.toBeVisible() | ||
.withTimeout(10000) | ||
.catch(e => { | ||
console.error("Failed to find settings-button within timeout: ", e); | ||
}); | ||
await tapVisibleButton('settings-button'); | ||
await tapVisibleButton('tab-account'); | ||
await tapVisibleButton('to-payment-methods'); | ||
await tapVisibleButton('add-payment-button'); | ||
await waitFor(element(by.id('input-nickname'))).toBeVisible().withTimeout(TIMEOUT); | ||
|
||
await element(by.id('input-nickname')).typeText('My Debit Card'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-credit-card')).typeText('1234567890123456'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-cvc')).typeText('123'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-exp-month')).typeText('12'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-exp-year')).typeText('2025'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-name')).typeText('John Doe'); | ||
await element(by.id('safe-area')).tap(); | ||
await element(by.id('input-zip')).typeText('12345'); | ||
await element(by.id('safe-area')).tap(); | ||
|
||
await tapVisibleButton('button-save-payment-method'); | ||
await element(by.text('OK')).tap(); | ||
//await expect(element(by.text('Your payment method was saved successfully!'))).toBeVisible().withTimeout(TIMEOUT); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,11 @@ | ||
import loginUser from "./loginUser"; | ||
|
||
describe('Login Screen Tests', () => { | ||
beforeEach(async () => { | ||
await device.launchApp({newInstance: true}); | ||
}); | ||
|
||
it('should fill email and password inputs and click the register button', async () => { | ||
await waitFor(element(by.id('register-button'))) | ||
.toBeVisible() | ||
.withTimeout(5000); | ||
console.log('Login username input should now be visible'); | ||
await element(by.id('login-username-input')).typeText('[email protected]'); | ||
|
||
await element(by.id('login-password-input')).typeText('CWA843'); | ||
|
||
//await device.disableSynchronization(); | ||
console.log('Tapping login button now...'); | ||
await element(by.id('login-submit-button')).tap(); | ||
console.log('Button tapped, proceeding without waiting for network...'); | ||
|
||
await waitFor(element(by.text('Login Successful'))).toBeVisible().withTimeout(15000); | ||
|
||
//await device.enableSynchronization(); | ||
|
||
await element(by.text("OK")).tap(); | ||
it('should fill email and password inputs and log the user in', async () => { | ||
loginUser(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
async function loginUser() { | ||
await waitFor(element(by.id('register-button'))) | ||
.toBeVisible() | ||
.withTimeout(5000); | ||
console.log('Login username input should now be visible'); | ||
await element(by.id('login-username-input')).typeText('[email protected]'); | ||
|
||
await element(by.id('login-password-input')).typeText('CWA843'); | ||
|
||
console.log('Tapping login button now...'); | ||
await device.disableSynchronization(); | ||
await element(by.id('login-submit-button')).tap(); | ||
|
||
await waitFor(element(by.text('Login Successful' || 'Logged in successfully.'))).toBeVisible().withTimeout(5000); | ||
|
||
await element(by.text("OK")).tap(); | ||
} | ||
|
||
export default loginUser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters