This repository has been archived by the owner on Mar 23, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to node 11 and fix all failing unit tests (#1075)
- Loading branch information
1 parent
a11c7b2
commit f3069aa
Showing
36 changed files
with
327 additions
and
201 deletions.
There are no files selected for viewing
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 +1 @@ | ||
9 | ||
11 |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import setup from '@setup' | ||
|
||
import windowSpecs from './pages/1-window.spec' | ||
import welcomeSpecs from './pages/2-welcome.spec' | ||
import profileNewSpecs from './pages/3-profile-new.spec' | ||
|
||
describe('App', () => { | ||
let scope = {} | ||
|
||
beforeAll(async () => { | ||
await setup.startApp(scope) | ||
await scope.app.client.waitUntilWindowLoaded() | ||
}) | ||
|
||
afterAll(() => setup.stopApp(scope)) | ||
|
||
describe('Window', () => windowSpecs(scope)) | ||
describe('Welcome', () => welcomeSpecs(scope)) | ||
describe('Profile new', () => profileNewSpecs(scope)) | ||
}) |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import packageJson from '@package.json' | ||
|
||
export default (scope) => { | ||
it('shows the proper application title', async () => { | ||
const title = await scope.app.client.getTitle() | ||
expect(title.toLowerCase()).toContain(packageJson.build.productName.toLowerCase()) | ||
}) | ||
} |
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,25 @@ | ||
export default (scope) => { | ||
it('should render', async () => { | ||
const welcomeElement = await scope.isExisting('.AppIntro') | ||
expect(welcomeElement).toBeTrue() | ||
}) | ||
|
||
it('click on start button', async () => { | ||
const buttonText = await scope.getText('.AppIntro__1__start-button') | ||
expect(buttonText).toEqual('Start') | ||
|
||
await scope.click('.AppIntro__1__start-button').pause(200) | ||
const hasIntroScreen = await scope.isExisting('.AppIntroScreen') | ||
expect(hasIntroScreen).toBeTrue() | ||
}) | ||
|
||
it('read intro screens', async () => { | ||
while (await scope.isExisting('.AppIntroScreen__container__right__next')) { | ||
await scope.click('.AppIntroScreen__container__right__next') | ||
await scope.app.client.waitUntilWindowLoaded() | ||
} | ||
|
||
const hasProfileNew = await scope.isExisting('.ProfileNew') | ||
expect(hasProfileNew).toBeTrue() | ||
}) | ||
} |
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,6 @@ | ||
export default (scope) => { | ||
it('shows the instructions section', async () => { | ||
const hasInstructions = await scope.isExisting('.ProfileNew__instructions') | ||
expect(hasInstructions).toBeTrue() | ||
}) | ||
} |
This file was deleted.
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,31 @@ | ||
const network1 = { | ||
id: 'main', | ||
symbol: 'm', | ||
token: 'MAI', | ||
subunit: 'mainito', | ||
fractionDigits: 8, | ||
server: 'http://127.0.0.1', | ||
apiVersion: 1, | ||
constants: {} | ||
} | ||
|
||
const network2 = { | ||
id: 'other', | ||
symbol: 'o', | ||
token: 'OTH', | ||
subunit: 'another', | ||
fractionDigits: 8, | ||
server: 'http://127.0.0.1', | ||
apiVersion: 1, | ||
constants: {} | ||
} | ||
|
||
export default { | ||
network1, | ||
network2 | ||
} | ||
|
||
export { | ||
network1, | ||
network2 | ||
} |
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,12 @@ | ||
const profile1 = { | ||
id: 'profile1', | ||
networkId: 'main' | ||
} | ||
|
||
export default { | ||
profile1 | ||
} | ||
|
||
export { | ||
profile1 | ||
} |
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
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
Oops, something went wrong.