Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test(site): improve E2E framework#9438

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mtojek merged 6 commits intomainfrome2e-cleanup
Aug 30, 2023
Merged

test(site): improve E2E framework#9438

mtojek merged 6 commits intomainfrome2e-cleanup
Aug 30, 2023

Conversation

mtojek
Copy link
Member

@mtojekmtojek commentedAug 30, 2023
edited
Loading

This PR adds more debugging hooks to Chromium events, so that we can intercept HTTP calls, and simply log them.

Screenshot 2023-08-30 at 17 02 32

Changes:

  • scale down number of workers to 1 (serial)
  • log API calls to Coder backend
  • log start/end of the test
  • show test name on Chromium debug lines

@mtojekmtojek self-assigned thisAug 30, 2023
@mtojekmtojek marked this pull request as ready for reviewAugust 30, 2023 15:06
@mtojek
Copy link
MemberAuthor

mtojek commentedAug 30, 2023
edited
Loading

@BrunoQuaresma Do you have an idea why is npm failing here? I can see occurrences like this:

e2e/tests/app.spec.ts(6,43): error TS2304: Cannot find name 'beforeCoderTest'.

EDIT:

Oh it looks like I forgot to commit this file...

BrunoQuaresma reacted with laugh emoji

@@ -554,7 +554,7 @@ jobs:
- run: pnpm playwright:install
working-directory: site

- run: pnpm playwright:test
- run: pnpm playwright:test --workers 1
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we setting workers to1?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

If you delete this, playwright will run tests in parallel, and it may cause the Coder backend overloaded.

I want to reduce the amount of points that can break e2e tests. Additionally, our e2e tests are relatively quick, so if it isn't a problem I would disable parallelism for now.

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Nice addition

@mtojekmtojekenabled auto-merge (squash)August 30, 2023 15:27
@mtojekmtojek merged commit2377ab6 intomainAug 30, 2023
@mtojekmtojek deleted the e2e-cleanup branchAugust 30, 2023 15:34
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 30, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees

@mtojekmtojek

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mtojek@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp