Skip to content

Commit 0203551

Browse files
committed
fix: test
1 parent eb8b5e4 commit 0203551

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

packages/cli/e2e/__tests__/pw-test.spec.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,23 @@ describe('pw-test', { timeout: 45000 }, () => {
6060

6161
it('Should add a Playwright test with custom install command to the config', async () => {
6262
const result = await runChecklyCli({
63-
args: ['pw-test', '--install-command', 'pnpm install', '--create-check', '--', `--grep`, '@TAG-B'],
63+
args: ['pw-test', '--install-command', 'pnpm install', '--create-check', '--', `--grep`, '@TAG-A'],
6464
apiKey: config.get('apiKey'),
6565
accountId: config.get('accountId'),
6666
directory: FIXTURE_TEST_PWT_NATIVE,
6767
timeout: 120000, // 2 minutes
6868
})
69+
if (result.status !== 0) {
70+
// eslint-disable-next-line no-console
71+
console.log(result)
72+
}
6973
expect(result.status).toBe(0)
7074
const checklyConfig = await loadChecklyConfig(FIXTURE_TEST_PWT_NATIVE)
7175
expect(checklyConfig.config?.checks).toBeDefined()
7276
expect(checklyConfig.config?.checks?.playwrightChecks).toBeDefined()
7377
const playwrightChecks = checklyConfig.config?.checks?.playwrightChecks
7478
expect(playwrightChecks).toBeDefined()
75-
expect(playwrightChecks!.length).toBe(1)
76-
expect(playwrightChecks![0].installCommand).toBe('pnpm install')
79+
expect(playwrightChecks!.length).toBe(2)
80+
expect(playwrightChecks![1].installCommand).toBe('pnpm install')
7781
})
7882
})

0 commit comments

Comments
 (0)