-
Notifications
You must be signed in to change notification settings - Fork 13k
fix: Deprecated filter by query in emoji-custom.all api call
#36723
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
632642f
fix and tests
tiagoevanp c093893
Create clean-feet-worry.md
tiagoevanp 774ca34
Update clean-feet-worry.md
tiagoevanp c8701c0
review
tiagoevanp eeed4b7
Merge branch 'fix/emoji-api' of github.com:RocketChat/Rocket.Chat int…
tiagoevanp 0e94618
fix test
tiagoevanp aa0b2c5
fix e2e test
tiagoevanp 8441fbf
remove escapeRegexp client
tiagoevanp 00f67b8
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into fix/…
tiagoevanp 4343fc0
Merge branch 'fix/emoji-api' of github.com:RocketChat/Rocket.Chat int…
tiagoevanp 11b6dac
review fix
tiagoevanp 3c2daa1
Update apps/meteor/tests/e2e/page-objects/admin-emojis.ts
tiagoevanp f2be5b7
Merge branch 'develop' into fix/emoji-api
kodiakhq[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| --- | ||
| "@rocket.chat/meteor": minor | ||
| "@rocket.chat/gazzodown": patch | ||
| "@rocket.chat/rest-typings": minor | ||
| --- | ||
|
|
||
| Fixes search by name in custom emojis list, by adding a correct parameter to the endpoint `emoji-custom.all` | ||
|
|
||
| Now the endpoint `emoji-custom.all` accepts a `name` as parameter, so the filter should work on emojis page withouth the necessity of set `ALLOW_UNSAFE_QUERY_AND_FIELDS_API_PARAMS` env var |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| import type { Locator, Page } from '@playwright/test'; | ||
|
|
||
| import { AdminFlextabEmoji } from './fragments/admin-flextab-emoji'; | ||
|
|
||
| export class AdminEmoji { | ||
| private readonly page: Page; | ||
|
|
||
| readonly addEmoji: AdminFlextabEmoji; | ||
|
|
||
| constructor(page: Page) { | ||
| this.page = page; | ||
| this.addEmoji = new AdminFlextabEmoji(page); | ||
| } | ||
|
|
||
| get newButton(): Locator { | ||
| return this.page.locator('role=button[name="New"]'); | ||
| } | ||
|
|
||
| get closeAdminButton(): Locator { | ||
| return this.page.getByRole('navigation').getByRole('button', { name: 'Close' }); | ||
| } | ||
|
|
||
| get searchInput(): Locator { | ||
| return this.page.locator('role=textbox[name="Search"]'); | ||
| } | ||
|
|
||
| async findEmojiByName(emojiName: string) { | ||
| await this.searchInput.fill(emojiName); | ||
| await this.page.locator(`role=link[name=${emojiName}]`).click(); | ||
| } | ||
| } |
21 changes: 21 additions & 0 deletions
21
apps/meteor/tests/e2e/page-objects/fragments/admin-flextab-emoji.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import type { Locator, Page } from '@playwright/test'; | ||
|
|
||
| export class AdminFlextabEmoji { | ||
| private readonly page: Page; | ||
|
|
||
| constructor(page: Page) { | ||
| this.page = page; | ||
| } | ||
|
|
||
| get nameInput(): Locator { | ||
| return this.page.locator('role=textbox[name="Name"]'); | ||
| } | ||
|
|
||
| get btnSave(): Locator { | ||
| return this.page.locator('role=button[name="Save"]'); | ||
| } | ||
|
|
||
| get btnDelete(): Locator { | ||
| return this.page.locator('role=button[name="Delete"]'); | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.