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: Add Omnichannel Business Hours E2E tests #32303

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

csuadev
Copy link
Contributor

@csuadev csuadev commented Apr 23, 2024

Add e2e tests to the Business Hours section on Omnichannel.

Proposed changes (including videos or screenshots)

Issue(s)

https://rocketchat.atlassian.net/browse/CORE-394

Steps to test or reproduce

Further comments

Copy link

changeset-bot bot commented Apr 23, 2024

⚠️ No Changeset found

Latest commit: 6e1d096

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

@csuadev csuadev added this to the Next-release-prep milestone Apr 23, 2024
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.13%. Comparing base (2d84fe2) to head (6e1d096).
Report is 30 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #32303      +/-   ##
===========================================
+ Coverage    55.60%   56.13%   +0.53%     
===========================================
  Files         2408     2441      +33     
  Lines        53023    53730     +707     
  Branches     10902    11061     +159     
===========================================
+ Hits         29483    30164     +681     
+ Misses       20931    20926       -5     
- Partials      2609     2640      +31     
Flag Coverage Δ
e2e 56.19% <ø> (+1.08%) ⬆️
unit 72.19% <ø> (-0.76%) ⬇️

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

@csuadev csuadev marked this pull request as ready for review April 26, 2024 15:49
@csuadev csuadev requested a review from a team as a code owner April 26, 2024 15:49
@csuadev csuadev modified the milestones: Next-release-prep, 6.9 Apr 26, 2024
Copy link
Contributor

dionisio-bot bot commented Apr 26, 2024

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is targeting the wrong base branch. It should target 7.0.0, but it targets 6.9.0

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge stat: QA assured Means it has been tested and approved by a company insider and removed stat: QA skipped labels May 9, 2024
Copy link
Contributor

@MarcosSpessatto MarcosSpessatto left a comment

Choose a reason for hiding this comment

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

Can we fix the indentation?

@csuadev
Copy link
Contributor Author

csuadev commented May 10, 2024

Can we fix the indentation?

@MarcosSpessatto I always run the eslint fix in all the files to avoid that, github shows like its disaligned but I don't think it is.

@kodiakhq kodiakhq bot removed the stat: ready to merge PR tested and approved waiting for merge label May 14, 2024
Copy link
Contributor

kodiakhq bot commented May 14, 2024

This PR currently has a merge conflict. Please resolve this and then re-add the ['stat: ready to merge', 'automerge'] label.

@scuciatto scuciatto removed this from the 6.9 milestone May 16, 2024
@csuadev csuadev added this to the 7.0 milestone May 20, 2024
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label May 20, 2024
jessicaschelly
jessicaschelly previously approved these changes May 27, 2024
Copy link
Contributor

@KevLehman KevLehman left a comment

Choose a reason for hiding this comment

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

Code looks good, just pls fix the identation.

Comment on lines +25 to +28
agent = await createAgent(api, 'user2');
await api.post('/settings/Livechat_enable_business_hours', { value: true }).then((res) => expect(res.status()).toBe(200));
await api.post('/settings/Livechat_business_hour_type', { value: 'Multiple' }).then((res) => expect(res.status()).toBe(200));
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Fix identation

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As I told you yesterday, there's no indentation error I could find here, it only happens here on GH. I ran the ESLint fix in every file I modify. In my editor I even installed extensions to fix indentation yesterday and it couldn't find any indentation errors. If you can find a way to make it look good here pls help me commiting it.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, remember we discussed this. Apparently ESLint is not running for e2e tests. Investigating why is out of the scope, but would be good to apply at least manual identation to all of these things.

GH UI affects identation in some cases, but for this case, you can click a file's 3 dot menu and using "view raw" to see how the actual text is there with no UI. You'll find it to be not idented properly.

Can you do a manual fix on the identation for this one? I'll ask why eslint is not running on the eng channel in the meantime 🤗

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But I don't know how to indent it good if I can't see any problems with indentation on both editors I have locally and neither the eslint and prettier extensions. That's why I told you maybe you can help me with that if you see the errors. I only see them on gh. 🙏

Copy link
Contributor

Choose a reason for hiding this comment

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

Yup, maybe this one can wait till #32526 is merged 👀

So we have eslint running on these files as well, wdyt?

@csuadev csuadev requested a review from KevLehman May 30, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: QA assured Means it has been tested and approved by a company insider stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants