Skip to content

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
@vercel
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.

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
Contributor

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
Contributor

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.

chris13524 and others added 2 commits January 12, 2024 07:42
Co-authored-by: Celine Sarafa <celinesarafa@gmail.com>
chris13524 and others added 2 commits January 12, 2024 07:42
Co-authored-by: Celine Sarafa <celinesarafa@gmail.com>
@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
@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.

4 participants