Title: E2E | Run E2E tests against other browsers · Issue #385 · coder/coder · GitHub
Open Graph Title: E2E | Run E2E tests against other browsers · Issue #385 · coder/coder
X Title: E2E | Run E2E tests against other browsers · Issue #385 · coder/coder
Description: As a developer, I want our E2E tests to run on all supported browsers and platforms in order to give me confidence when I make changes. Today, our E2E tests are only run on Chrome - but we should ideally expand our E2E tests to run on mu...
Open Graph Description: As a developer, I want our E2E tests to run on all supported browsers and platforms in order to give me confidence when I make changes. Today, our E2E tests are only run on Chrome - but we should i...
X Description: As a developer, I want our E2E tests to run on all supported browsers and platforms in order to give me confidence when I make changes. Today, our E2E tests are only run on Chrome - but we should i...
Opengraph URL: https://github.com/coder/coder/issues/385
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"E2E | Run E2E tests against other browsers","articleBody":"As a developer, I want our E2E tests to run on all supported browsers and platforms in order to give me confidence when I make changes. Today, our E2E tests are only run on Chrome - but we should ideally expand our E2E tests to run on multiple browsers - documentation here: https://playwright.dev/docs/intro#configuration-file\r\n\r\nAs a rationale for this, we found several issues in v1 that were specific to Safari on Mac:\r\n- https://github.com/coder/m/pull/9508\r\n- https://github.com/coder/m/pull/11093\r\n\r\nWe would need to update our playwright configuration file in `site/e2e/playwright.config.ts` to support different browsers.\r\n\r\nThis can be done by adding projects that specify browsers explicitly to run:\r\n```\r\nconst config: PlaywrightTestConfig = {\r\n projects: [\r\n {\r\n name: 'chromium',\r\n use: { ...devices['Desktop Chrome'] },\r\n },\r\n {\r\n name: 'firefox',\r\n use: { ...devices['Desktop Firefox'] },\r\n },\r\n {\r\n name: 'webkit',\r\n use: { ...devices['Desktop Safari'] },\r\n },\r\n ],\r\n};\r\nexport default config;\r\n```\r\n\r\nAnd then upgrading our scripts in `site/package.json` to run these, ie:\r\n```\r\n\"playwright:test:chromium\": \"playwright test --config=e2e/playwright.config.ts --project=chromium\",\r\n\"playwright:test:firefox\": \"playwright test --config=e2e/playwright.config.ts --project=firefox\",\r\n...\r\n```\r\n\r\nLastly, we would need to update our e2e tests in `.github/coder.yaml` to add an additional browser matrix for our `test/e2e` job, so that we could run each of these browsers for each supported platform.","author":{"url":"https://github.com/bryphe-coder","@type":"Person","name":"bryphe-coder"},"datePublished":"2022-03-01T01:44:36Z","url":"https://github.com/coder/coder/issues/385"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:92e91cf4-c0a9-1c21-7869-1ebad36a14aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA9C:2F9718:1823CA2:205A94A:6B0152D0 |
| html-safe-nonce | 0fb290c6abcd31dcb6a309fbcf056ff595d5283fa62b1d6319f3b19cf43b9d24 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTlDOjJGOTcxODoxODIzQ0EyOjIwNUE5NEE6NkIwMTUyRDAiLCJ2aXNpdG9yX2lkIjoiNTE4Njk4MTAzMjUwMjU3OTkyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1836bd04637d50e73beec6a97c606fe27dec3d1b2e92c08af2bfb67a3de0ae8e |
| hovercard-subject-tag | issue:1154749033 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/385/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e0a079041ebd093ec3e3c9705b4c152134440242c97263affe8d4ce0bc37aa20/coder/coder/issues/385 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0a079041ebd093ec3e3c9705b4c152134440242c97263affe8d4ce0bc37aa20/coder/coder/issues/385 |
| og:image:alt | As a developer, I want our E2E tests to run on all supported browsers and platforms in order to give me confidence when I make changes. Today, our E2E tests are only run on Chrome - but we should i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bryphe-coder |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width