Skip to content

Commit

Permalink
feat: video gallery status filter wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturGaspar committed Oct 14, 2023
1 parent 1983f2b commit 08ea104
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/editors/containers/VideoGallery/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ describe('VideoGallery', () => {

await act(async () => {
fireEvent.click(screen.getByRole('button', {
name: 'Video status',
name: 'Filter by video status',
}));
});
await act(async () => {
Expand Down
8 changes: 4 additions & 4 deletions src/editors/containers/VideoGallery/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ export const messages = {
},

// Filter Dropdown
filterByVideoStatusNone: {
id: 'authoring.selectvideomodal.filter.videostatusnone.label',
defaultMessage: 'Video status',
description: 'Dropdown label for filter by video status (none)',
filterByVideoStatusTitle: {
id: 'authoring.selectvideomodal.filter.title.label',
defaultMessage: 'Filter by video status',
description: 'Title for video status filter dropdown',
},
filterByVideoStatusUploading: {
id: 'authoring.selectvideomodal.filter.videostatusuploading.label',
Expand Down
2 changes: 1 addition & 1 deletion src/editors/containers/VideoGallery/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const filterKeys = StrictDict({
});

export const filterMessages = StrictDict({
title: messages[messageKeys.filterByVideoStatusNone],
title: messages[messageKeys.filterByVideoStatusTitle],
uploading: messages[messageKeys.filterByVideoStatusUploading],
processing: messages[messageKeys.filterByVideoStatusProcessing],
ready: messages[messageKeys.filterByVideoStatusReady],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('SearchSort component', () => {
test('adds a filter option for each filterKet', async () => {
const { getByRole } = getComponent();
await act(() => {
fireEvent.click(screen.getByRole('button', { name: /video status/i }));
fireEvent.click(screen.getByRole('button', { name: /Filter by video status/i }));
});
Object.keys(filterMessages)
.forEach((key) => {
Expand Down

0 comments on commit 08ea104

Please sign in to comment.