Skip to content

Commit

Permalink
fix(suite-native): add conditionalDescribe to deeplink test
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed Oct 24, 2024
1 parent b49f748 commit e8feabe
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion suite-native/app/e2e/tests/deeplinkPopup.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { exec } from 'child_process';

import { TrezorUserEnvLink } from '@trezor/trezor-user-env-link';
import TrezorConnect from '@trezor/connect-mobile';
import { conditionalDescribe } from '@suite-common/test-utils';

import {
appIsFullyLoaded,
Expand Down Expand Up @@ -35,7 +36,7 @@ const openUriScheme = (url: string, platformToOpen: 'android') => {
});
};

describe('Deeplink connect popup.', () => {
conditionalDescribe(device.getPlatform() !== 'android', 'Deeplink connect popup.', () => {
beforeAll(async () => {
await new Promise(resolve => {
server = http.createServer((req, res) => {
Expand Down
1 change: 1 addition & 0 deletions suite-native/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"@babel/plugin-transform-export-namespace-from": "^7.23.4",
"@config-plugins/detox": "^8.0.0",
"@react-native/babel-preset": "^0.75.2",
"@suite-common/test-utils": "workspace:^",
"@trezor/connect-mobile": "workspace:^",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.24",
Expand Down
3 changes: 3 additions & 0 deletions suite-native/app/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@
{
"path": "../../packages/trezor-user-env-link"
},
{
"path": "../../suite-common/test-utils"
},
{
"path": "../../packages/connect-mobile"
}
Expand Down
3 changes: 2 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9338,7 +9338,7 @@ __metadata:
languageName: unknown
linkType: soft

"@suite-common/test-utils@workspace:*, @suite-common/test-utils@workspace:suite-common/test-utils":
"@suite-common/test-utils@workspace:*, @suite-common/test-utils@workspace:^, @suite-common/test-utils@workspace:suite-common/test-utils":
version: 0.0.0-use.local
resolution: "@suite-common/test-utils@workspace:suite-common/test-utils"
dependencies:
Expand Down Expand Up @@ -9596,6 +9596,7 @@ __metadata:
"@suite-common/message-system": "workspace:*"
"@suite-common/redux-utils": "workspace:*"
"@suite-common/suite-constants": "workspace:*"
"@suite-common/test-utils": "workspace:^"
"@suite-common/token-definitions": "workspace:*"
"@suite-common/wallet-core": "workspace:*"
"@suite-common/wallet-types": "workspace:*"
Expand Down

0 comments on commit e8feabe

Please sign in to comment.