-
-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 1e57daf)
- Loading branch information
Showing
11 changed files
with
430 additions
and
119 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
38 changes: 0 additions & 38 deletions
38
packages/integration-tests/projects/suite-web/tests/onboarding/hologram.test.ts
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
packages/integration-tests/projects/suite-web/tests/onboarding/packaging-security.test.ts
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,17 @@ | ||
// @group:onboarding | ||
// @retry=2 | ||
|
||
describe('Onboarding - packaging security', () => { | ||
beforeEach(() => { | ||
cy.task('startBridge'); | ||
cy.viewport(1024, 768).resetDb(); | ||
cy.prefixedVisit('/'); | ||
}); | ||
|
||
it('Device without firmware is expected to come fresh out of package', () => { | ||
cy.connectDevice({ mode: 'initialize', firmware: 'none' }); | ||
cy.getTestElement('@onboarding/continue-button').click(); | ||
cy.getTestElement('@onboarding/exit-app-button'); | ||
cy.matchImageSnapshot('security-check'); | ||
}); | ||
}); |
66 changes: 0 additions & 66 deletions
66
packages/integration-tests/projects/suite-web/tests/onboarding/steps-order.test.ts
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
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
57 changes: 57 additions & 0 deletions
57
packages/integration-tests/projects/suite-web/tests/suite/prerequisites.test.ts
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,57 @@ | ||
import { PrerequisiteType } from "@suite/types/suite"; | ||
|
||
type Fixture = { | ||
desc: PrerequisiteType; | ||
mockDevice: any; | ||
} | ||
|
||
describe('prerequisites = test various types of devices connecting to the application', () => { | ||
beforeEach(() => { | ||
|
||
cy.viewport(1024, 768).resetDb(); | ||
cy.prefixedVisit('/'); | ||
|
||
cy.getTestElement('@connect-device-prompt'); | ||
}); | ||
|
||
// todo: add transport related prerequisites | ||
const fixtures: Fixture[] = [ | ||
{ | ||
desc: 'device-seedless', | ||
mockDevice: () => cy.connectDevice({ mode: 'seedless' }), | ||
}, { | ||
desc: 'device-unacquired', | ||
mockDevice: () => cy.connectDevice({ type: 'unacquired' }), | ||
}, { | ||
desc: 'device-unreadable', | ||
mockDevice: () => cy.connectDevice({ type: 'unreadable' }), | ||
}, { | ||
desc: 'device-unknown', | ||
mockDevice: () => cy.connectDevice({ features: undefined }) | ||
}, { | ||
desc: 'device-disconnected', | ||
mockDevice: () => { }, | ||
}, | ||
{ | ||
desc: 'device-bootloader', | ||
mockDevice: () => cy.connectBootloaderDevice('1'), | ||
} | ||
]; | ||
|
||
fixtures.forEach(f => { | ||
it(f.desc, () => { | ||
f.mockDevice(); | ||
cy.getTestElement('@onboarding/expand-troubleshooting-tips').click(); | ||
cy.matchImageSnapshot(f.desc); | ||
}) | ||
}) | ||
|
||
describe('should redirect to onboarding', () => { | ||
it('to welcome step', () => { | ||
cy.connectDevice({ mode: 'initialize' }); | ||
cy.getTestElement('@onboarding/welcome'); | ||
}); | ||
|
||
// device-recover-mode is tested elsewhere with full-fledged emulator | ||
}) | ||
}) |
Oops, something went wrong.