-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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
Chore: Fix Omnichannel E2E tests not running #26092
Conversation
apps/meteor/.mocharc.api.js
Outdated
'tests/end-to-end/api/livechat/*.js', | ||
'tests/end-to-end/api/livechat/*.ts', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is better to use a greedy glob, something like:
'tests/end-to-end/api/**/*.js',
'tests/end-to-end/api/**/*.ts',
so it is not needed to have specific lines for livechat and whatever else we add
@@ -287,7 +287,7 @@ export class LivechatVisitorsRaw extends BaseRaw<ILivechatVisitor> implements IL | |||
} | |||
|
|||
removeById(_id: string): Promise<DeleteResult> { | |||
return this.removeById(_id); | |||
return this.deleteOne({ _id }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this being used? I mean, glad you fixed since it is an infinite recursive loop, if this is being used somewhere how none found it before? 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I believe this is getting used on Livechat when visitor requests to delete their data 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used as murtaza said. But as that feature is not that used 🙈 probably no one found it. (This single line could easily be a regression tho)
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments