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

More commenting test #4719

Merged
merged 2 commits into from
Jan 11, 2024
Merged

More commenting test #4719

merged 2 commits into from
Jan 11, 2024

Conversation

gbalint
Copy link
Contributor

@gbalint gbalint commented Jan 10, 2024

Description:
I wrote a few tests for commenting.
I'm not decided on the general pattern on how to do it, because

  1. I prefer granular tests of well-defined features
    BUT
  2. The tests have a huge overhead to launch, because they open a new browser and load the utopia app and an empty project, which takes a lot of time.

So I wrote a longer test, which shows how we could write unified tests to test longer workflows, and I also wrote small tests, which only test a single feature. We can decide which pattern to follow.

Copy link
Contributor

github-actions bot commented Jan 10, 2024

Try me

Copy link
Contributor

@ruggi ruggi left a comment

Choose a reason for hiding this comment

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

🙌

const BRANCH_NAME = process.env.BRANCH_NAME ? `&branch_name=${process.env.BRANCH_NAME}` : ''
const BASE_URL = process.env.BASE_URL ?? 'http://localhost:8000'

export async function init(utopiaBrowser: UtopiaPuppeteerBrowser) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this would deserve a more specific name, e.g. initBrowserTest

Copy link

relativeci bot commented Jan 10, 2024

Job #9833: Bundle Size — 62.24MiB (~+0.01%).

f95c093(current) vs df0030c master#9832(baseline)

Warning

Bundle contains 66 duplicate packages – View duplicate packages

Bundle metrics  Change 1 change Regression 1 regression
                 Current
Job #9833
     Baseline
Job #9832
Regression  Initial JS 45.43MiB(~+0.01%) 45.43MiB
No change  Initial CSS 0B 0B
No change  Cache Invalidation 19.89% 19.89%
No change  Chunks 26 26
No change  Assets 30 30
No change  Modules 4365 4365
No change  Duplicate Modules 472 472
No change  Duplicate Code 30.76% 30.76%
No change  Packages 462 462
No change  Duplicate Packages 65 65
Bundle size by type  Change 1 change Regression 1 regression
                 Current
Job #9833
     Baseline
Job #9832
Regression  JS 62.23MiB (~+0.01%) 62.23MiB
Not changed  HTML 11.54KiB 11.54KiB

View job #9833 reportView chore/commenting-tests branch activity

Copy link
Contributor

github-actions bot commented Jan 10, 2024

Performance test results:
(Chart1)
(Chart2)

@gbalint gbalint merged commit 9702956 into master Jan 11, 2024
11 checks passed
@gbalint gbalint deleted the chore/commenting-tests branch January 11, 2024 09:33
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