-
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
1d768f8
commit fb38ef0
Showing
49 changed files
with
53 additions
and
28 deletions.
There are no files selected for viewing
Binary file added
BIN
+137 KB
...hould fill email and password inputs and click the register button/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
+137 KB
... fill email and password inputs and click the register button/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
+141 KB
...ould fill email and password inputs and click the register button/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
+137 KB
...hould fill email and password inputs and click the register button/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
+137 KB
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
+137 KB
...hould fill email and password inputs and click the register button/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
+137 KB
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
+137 KB
...hould fill email and password inputs and click the register button/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
+137 KB
... fill email and password inputs and click the register button/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
+141 KB
...ould fill email and password inputs and click the register button/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
+137 KB
...hould fill email and password inputs and click the register button/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
+137 KB
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
+182 KB
...hould fill email and password inputs and click the register button/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
+182 KB
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
...hould fill email and password inputs and click the register button/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
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
...hould fill email and password inputs and click the register button/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
... fill email and password inputs and click the register button/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
...ould fill email and password inputs and click the register button/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
+146 KB
...hould fill email and password inputs and click the register button/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
+146 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...ould fill email and password inputs and click the register button/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...hould fill email and password inputs and click the register button/testDone.png
Oops, something went wrong.
Binary file added
BIN
+175 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...ould fill email and password inputs and click the register button/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...hould fill email and password inputs and click the register button/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+139 KB
...ould fill email and password inputs and click the register button/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...hould fill email and password inputs and click the register button/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...ould fill email and password inputs and click the register button/testStart.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
...hould fill email and password inputs and click the register button/testDone.png
Oops, something went wrong.
Binary file added
BIN
+145 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...ould fill email and password inputs and click the register button/testStart.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
...hould fill email and password inputs and click the register button/testDone.png
Oops, something went wrong.
Binary file added
BIN
+159 KB
... fill email and password inputs and click the register button/testFnFailure.png
Oops, something went wrong.
Binary file added
BIN
+140 KB
...ould fill email and password inputs and click the register button/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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
/** @type {import('@jest/types').Config.InitialOptions} */ | ||
module.exports = { | ||
rootDir: '..', | ||
testMatch: ['<rootDir>/e2e/**/*.test.js'], | ||
testTimeout: 120000, | ||
maxWorkers: 1, | ||
globalSetup: 'detox/runners/jest/globalSetup', | ||
globalTeardown: 'detox/runners/jest/globalTeardown', | ||
reporters: ['detox/runners/jest/reporter'], | ||
testEnvironment: 'detox/runners/jest/testEnvironment', | ||
verbose: true, | ||
rootDir: "..", | ||
testMatch: ["<rootDir>/e2e/**/*.test.js"], | ||
testTimeout: 120000, | ||
maxWorkers: 1, | ||
globalSetup: "detox/runners/jest/globalSetup", | ||
globalTeardown: "detox/runners/jest/globalTeardown", | ||
reporters: ["detox/runners/jest/reporter"], | ||
testEnvironment: "detox/runners/jest/testEnvironment", | ||
verbose: true, | ||
}; |
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,17 +1,26 @@ | ||
describe("Login Screen", () => { | ||
describe('Login Screen Tests', () => { | ||
beforeEach(async () => { | ||
await device.launchApp(); | ||
await device.launchApp({newInstance: true}); | ||
}); | ||
|
||
it("Expect to see login button", async () => { | ||
await waitFor(element(by.id('login-submit-button'))).toBeVisible().withTimeout(5000); | ||
}); | ||
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(); | ||
|
||
it("Should login", async () => { | ||
await waitFor(element(by.id('login-submit-button'))).toBeVisible().withTimeout(5000); | ||
await element(by.id('login-username-input')).typeText('[email protected]'); | ||
await element(by.id('login-password-input')).typeText('CWA843'); | ||
await element(by.id('login-submit-button')).tap(); | ||
await waitFor(element(by.id('settings-button'))).toBeVisible().withTimeout(5000); | ||
await element(by.text("OK")).tap(); | ||
}); | ||
}); |
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,14 @@ | ||
describe('Login Screen Tests', () => { | ||
beforeEach(async () => { | ||
await device.launchApp({newInstance: true}); | ||
}); | ||
|
||
it('should click register button and show register screen', async () => { | ||
await waitFor(element(by.id('register-button'))) | ||
.toBeVisible() | ||
.withTimeout(5000); | ||
await element(by.id('register-button')).tap(); | ||
|
||
await expect(element(by.id('register-screen-id'))).toBeVisible(); | ||
}); | ||
}); |
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