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(ci): add test for theme selection #3157

Merged
merged 4 commits into from Jul 21, 2023

Conversation

lupusA
Copy link
Contributor

@lupusA lupusA commented Jul 18, 2023

Dear all,

this PR contains:

  • Added test for changing themes
  • Encapsulated the creation of a test repository in a function
  • Added test for changing the byte representation
  • Added test for changing the pagination

The PR is currently a draft. While the test for selecting different themes works, the tests for testing pagination and byte representation still needs to be finished. I was not able to extract the text within the cell, where the size of the snapshot is located.

The idea was to get the size in both byte representations and compare them.
Feedback is welcomed.

Cheers,

- Encapsulated the creation of a test repository in a function
- Added test for changing the byte representation
- Added test for changing the pagination
@codecov
Copy link

codecov bot commented Jul 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.06 ⚠️

Comparison is base (9f6b86f) 75.39% compared to head (8443540) 75.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3157      +/-   ##
==========================================
- Coverage   75.39%   75.34%   -0.06%     
==========================================
  Files         459      459              
  Lines       36340    36408      +68     
==========================================
+ Hits        27399    27430      +31     
- Misses       7028     7056      +28     
- Partials     1913     1922       +9     
Impacted Files Coverage Δ
internal/server/server.go 73.69% <100.00%> (+0.03%) ⬆️

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@lupusA lupusA marked this pull request as ready for review July 20, 2023 18:12
@lupusA
Copy link
Contributor Author

lupusA commented Jul 20, 2023

The test for the pagination settings needs a proper ID for the dropdown menu in html-ui. Will make a pr for this.

Cheers,

@julio-lopez julio-lopez removed their request for review July 20, 2023 21:18
@jkowalski
Copy link
Contributor

this is awesome, thank you!

@jkowalski jkowalski merged commit 90985b9 into kopia:master Jul 21, 2023
28 checks passed
@lupusA lupusA deleted the fix-theme-selector-test branch September 14, 2023 17: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.

None yet

2 participants