Skip to content
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

chore: initial Playwright tests #313

Merged
merged 6 commits into from
Jan 12, 2024
Merged

chore: initial Playwright tests #313

merged 6 commits into from
Jan 12, 2024

Conversation

chris13524
Copy link
Member

@chris13524 chris13524 commented Dec 17, 2023

Adds Playwright testing. Initially created with npm init playwright@latest and then tweaks for yarn, automatic running of the dev server, and added a basic initial test.

  • Replace with secret before merging

@chris13524 chris13524 self-assigned this Dec 17, 2023
Copy link

vercel bot commented Dec 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app-web3inbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2024 1:50pm

Comment on lines +3 to +7
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider removing

Copy link
Member Author

@chris13524 chris13524 Dec 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd kinda rather keep it for now since this is early in the usage of Playwright and the example boilerplate might come in handy later. Happy for an engineer to remove/cleanup later themselves if they don't feel they will need it.

package.json Outdated Show resolved Hide resolved
Comment on lines +54 to +62
/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out? Mobile is an important use case.

Do they require specific runners or something?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These commented out code blocks are just boilerplate what Playwright init sets up, I haven't enabled them in order to test them. Feel free to enable in a subsequent PR.

Comment on lines +64 to +73
/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ...devices['Desktop Chrome'], channel: 'chrome' },
// },
],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to test for these if we test against chromium

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.github/workflows/playwright.yml Outdated Show resolved Hide resolved
.github/workflows/playwright.yml Outdated Show resolved Hide resolved
chris13524 and others added 2 commits January 12, 2024 07:42
@chris13524 chris13524 force-pushed the chore/add-playwright branch from a8a902e to ce55984 Compare January 12, 2024 13:40
@chris13524 chris13524 force-pushed the chore/add-playwright branch from ce55984 to 56dc001 Compare January 12, 2024 13:40
@devceline devceline merged commit 1ed5946 into main Jan 12, 2024
3 checks passed
@arein arein deleted the chore/add-playwright branch January 12, 2024 13:56
@chris13524 chris13524 removed a link to an issue Jan 12, 2024
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants