-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First setup for Tools E2E tests #996
Conversation
🦋 Changeset detectedLatest commit: ac99ec0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 5 Ignored Deployments
|
78aec6b
to
56c867a
Compare
67c492e
to
5b954fb
Compare
7255a23
to
069a019
Compare
d066e7f
to
976d2c5
Compare
? process.env.PLAYWRIGHT_BASE_URL | ||
: 'http://127.0.0.1:3000', | ||
channel: 'chromium', | ||
trace: `retain-on-failure`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, can be without backticks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
webServer: { | ||
command: `pnpm --filter ${process.env.TESTOBJECT} run start`, | ||
url: 'http://127.0.0.1:3000', | ||
reuseExistingServer: !process.env.CI, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens when this is an empty string? For clarity could be process.env.CI === undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty string assume false, but i'll change it either way to make it more clear.
@@ -0,0 +1,18 @@ | |||
import type { Page } from '@playwright/test'; | |||
|
|||
export default class MockHelper { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use named exports, for easy importing and maintainability
@@ -0,0 +1,15 @@ | |||
import type { Locator, Page } from '@playwright/test'; | |||
|
|||
export default class NavHeaderComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use named exports, for easy importing and maintainability
@@ -0,0 +1,19 @@ | |||
import type { Locator, Page } from '@playwright/test'; | |||
|
|||
export default class NotificationContainerComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use named exports, for easy importing and maintainability
@@ -0,0 +1,13 @@ | |||
import type { Page } from '@playwright/test'; | |||
|
|||
export default class AsideComponent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use named exports, for easy importing and maintainability
export default class ToolsHeaderComponent extends NavHeaderComponent { | ||
public networkCard: CardComponent; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use named exports, for easy importing and maintainability
(Applies to all the others as well. I stopped adding the comment from here)
"extends": "./node_modules/@kadena-dev/heft-rig/tsconfig-base.json", | ||
"compilerOptions": { | ||
"types": ["node"], | ||
"rootDir": "./", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why we wouldn't have src
as rootDir
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't the rootrdir before. Good Catch.
This PR adds