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

fix: only count something as a directory if it has children #4595

Merged
merged 5 commits into from
Dec 2, 2024

Conversation

jtran
Copy link
Collaborator

@jtran jtran commented Nov 27, 2024

Replaces #4556. Working around CI limitation.
Closes #4515.

Copy link

vercel bot commented Nov 27, 2024

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

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Dec 2, 2024 8:01pm

Copy link

qa-wolf bot commented Nov 27, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

@TomPridham
Copy link
Contributor

I also just pushed a change to my branch that updates the e2e tests in the file-tree-spec since they were expecting the old behavior

@TomPridham
Copy link
Contributor

Oh, so, this line is never resolving because the span with that test id doesn't get rendered if there are 0 folders
https://github.com/KittyCAD/modeling-app/blob/main/e2e/playwright/fixtures/homePageFixture.ts#L67

@jtran jtran marked this pull request as draft November 27, 2024 23:31
@TomPridham
Copy link
Contributor

There aren't currently any tests actually using the folder count, so deleting it would be an option. I did push another fix that I think would fix it. I can't actually run the e2e tests based on the info in the readme afaik

@jtran
Copy link
Collaborator Author

jtran commented Nov 28, 2024

If it doesn't work, I think removing the folder count from the helper and only using it where we explicitly want to assert the value is a good option.

@TomPridham
Copy link
Contributor

Okay, I removed the folder count. Hopefully that's the last thing

@jtran jtran force-pushed the jtran/tom-pridham/fix/directory-count branch from e3a445e to e16eb2b Compare December 2, 2024 19:37
@jtran jtran marked this pull request as ready for review December 2, 2024 20:10
Copy link
Collaborator

@pierremtb pierremtb left a comment

Choose a reason for hiding this comment

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

Thanks @TomPridham and @jtran!

@pierremtb pierremtb merged commit 51f0b66 into main Dec 2, 2024
26 checks passed
@pierremtb pierremtb deleted the jtran/tom-pridham/fix/directory-count branch December 2, 2024 20:16
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.

[BUG]: The count of number of folders when displayed on the project page is incorrect.
3 participants