-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add bad reference error [gh-800]
- Loading branch information
Nahuel Alejandro Ramos
committed
Aug 17, 2023
1 parent
41aaa63
commit c459c19
Showing
5 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...e/__tests__/fixtures/test-bad-reference-project/common/__test-utils__/playwright/index.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,2 @@ | ||
export const waitForNewTab = 1 | ||
export const waitForPageNavigation = 2 |
10 changes: 10 additions & 0 deletions
10
packages/cli/e2e/__tests__/fixtures/test-bad-reference-project/e2e/browser/browser.spec.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,10 @@ | ||
/* eslint-disable no-console */ | ||
// Note: These must be relative imports above the checkly.config.ts location | ||
import { waitForNewTab, waitForPageNavigation } from '../../common/__test-utils__/playwright' | ||
import { test } from '@playwright/test' | ||
|
||
test('login and and navigate to the provider shopfront', ({ page }) => { | ||
console.log('ok') | ||
page.setDefaultTimeout(10000) | ||
console.log(waitForNewTab, waitForPageNavigation) | ||
}) |
18 changes: 18 additions & 0 deletions
18
packages/cli/e2e/__tests__/fixtures/test-bad-reference-project/e2e/checkly.config.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,18 @@ | ||
import { defineConfig } from 'checkly' | ||
|
||
const config = defineConfig({ | ||
projectName: 'Test Project (bad reference project)', | ||
logicalId: 'test-bad-reference-project', | ||
repoUrl: 'https://github.com/checkly/checkly-cli', | ||
checks: { | ||
locations: ['us-east-1', 'eu-west-1'], | ||
tags: ['mac'], | ||
runtimeId: '2022.10', | ||
checkMatch: '**/*.check.ts', | ||
browserChecks: { | ||
testMatch: '**/*.spec.ts', | ||
}, | ||
}, | ||
}) | ||
|
||
export default config |
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