Skip to content

Commit

Permalink
test: adding manual bridge start and more screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
andrcj committed May 15, 2024
1 parent 94cd55f commit b2cddb5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 5 additions & 4 deletions packages/suite-desktop-core/e2e/support/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ import { TrezorUserEnvLink } from '@trezor/trezor-user-env-link';
export const launchSuite = async () => {
const appDir = path.join(__dirname, '../../../suite-desktop');
const desiredLogLevel = process.env.LOGLEVEL ?? 'error';
// Necessary for local macos test development. Remove when node-bridge is merged into tenv
if (process.platform === 'darwin') {
await TrezorUserEnvLink.api.startBridge();
}
// // Necessary for local macos test development. Remove when node-bridge is merged into tenv
// if (process.platform === 'darwin') {
// await TrezorUserEnvLink.api.startBridge();
// }
await TrezorUserEnvLink.api.startBridge();
const electronApp = await electron.launch({
cwd: appDir,
args: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@ import { waitForDataTestSelector } from '../common';

class DashboardActions {
async passThroughInitialRun(window: Page) {
await waitForDataTestSelector(window, '@welcome/title');
await window.screenshot({
path: './test-results/zacatek-initial-runu.png',
fullPage: true,
});
await waitForDataTestSelector(window, '@welcome/title');
await window.getByTestId('@analytics/continue-button').click();
await window.screenshot({
path: './test-results/po-continue-runu.png',
fullPage: true,
});
await window.getByTestId('@onboarding/exit-app-button').click();
await window.screenshot({
path: './test-results/po-exitu-runu.png',
fullPage: true,
});
}

async discoveryShouldFinish(window: Page) {
Expand Down

0 comments on commit b2cddb5

Please sign in to comment.