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

test: refactor API E2E tests for groups endpoints #30523

Merged
merged 6 commits into from
Oct 2, 2023

Conversation

sampaiodiego
Copy link
Member

Proposed changes (including videos or screenshots)

I needed to add a few new tests and realised the whole file was being executed in many weird ways. So I refactor it to use describe correctly for each endpoint. I also added a few clean up routines but it is still not covering all tests.

Some tests were depending on the setting E2E_Enable to be set as true, but I don't know how they were "working" since it was not being set anymore. This issue started to happen when I used describe for all tests. I wonder if some failures were hidden previsouly.

Issue(s)

Steps to test or reproduce

Further comments

@changeset-bot
Copy link

changeset-bot bot commented Sep 28, 2023

⚠️ No Changeset found

Latest commit: 75283ed

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Merging #30523 (75283ed) into develop (7493442) will decrease coverage by 0.17%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30523      +/-   ##
===========================================
- Coverage    50.93%   50.77%   -0.17%     
===========================================
  Files          809      803       -6     
  Lines        15016    14995      -21     
  Branches      2724     2720       -4     
===========================================
- Hits          7649     7614      -35     
- Misses        6958     6960       +2     
- Partials       409      421      +12     
Flag Coverage Δ
e2e 48.44% <ø> (-0.14%) ⬇️
unit 62.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: needs QA labels Sep 28, 2023
@sampaiodiego sampaiodiego marked this pull request as ready for review September 28, 2023 23:06
@sampaiodiego sampaiodiego requested a review from a team as a code owner September 28, 2023 23:06
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels Sep 29, 2023
@ggazzo ggazzo merged commit 2f74b2c into develop Oct 2, 2023
43 checks passed
@ggazzo ggazzo deleted the chore-refactor-e2e-test-groups branch October 2, 2023 12:24
gabriellsh added a commit that referenced this pull request Oct 2, 2023
…ove/ui-caching

* 'develop' of github.com:RocketChat/Rocket.Chat:
  test: adding missing verifications on message-actions (#30531)
  refactor: Oembed backend (#30228)
  test: refactor API E2E tests for groups endpoints (#30523)
  test: adding missing verifications on threads (#30528)
gabriellsh added a commit that referenced this pull request Oct 3, 2023
…e/translationCdn

* 'develop' of github.com:RocketChat/Rocket.Chat: (117 commits)
  chore: do not focus messagebox on mobile devices (#30553)
  chore: add the new endpoints to sync with cloud (#30546)
  fix: in forward search field, user cannot be found by name (Full Name) (#29663)
  chore: set license public key v3 with v2 (#30548)
  chore: adjust callbacks return type (#30547)
  chore: Delete Trigger Endpoint (#30533)
  test: adding missing verifications on message-actions (#30531)
  refactor: Oembed backend (#30228)
  test: refactor API E2E tests for groups endpoints (#30523)
  test: adding missing verifications on threads (#30528)
  chore: refactor cloud sync (#30401)
  refactor: Omni logs (#30322)
  refactor: Livechat Header -> ts (#30255)
  chore: Deprecate un-used meteor method for omnichannel analytics (#30421)
  feat: add supported versions + minimum clients versions to the info endpoint (#30178)
  feat: Auto-enable autotranslate (#30370)
  chore: Prevent call license and registration status endpoints when not enough permission (#30336)
  ci: Security/GitHub jira integration (#29776)
  feat: License V3 (#30287)
  chore: move Omnichannel toolbox section from sidebar room list (#30502)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA skipped stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants