mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 20:59:56 -05:00
ui: sample data names Blender and WROLPi, not real channels (#647)
* ui: sample data names Blender, not somebody's channel The gallery, the card samples, and the search fixtures used a real YouTube channel and one of its video titles as demo content. Sample data ships to users and appears in a page linked from Settings; naming a real third party in it puts words in their mouth -- the delete-confirmation sample in particular read "The channel Wranglerstar and its download rules will be removed." Blender fits better anyway: the repo's own test media is Big Buck Bunny, so the sample library now refers to something it actually contains, and to a project that publishes its films for exactly this kind of use. * ui: the second sample channel is WROLPi's own Same reason as the last commit: the remaining sample channel and its video title belonged to a real person. The pair now reads as Blender and WROLPi, which are the two things this project can name freely.
This commit is contained in:
parent
5873e65e8c
commit
499ef435f8
4 changed files with 17 additions and 17 deletions
|
|
@ -455,7 +455,7 @@ describe('SearchResultsInput', () => {
|
|||
const results = {
|
||||
tags: {name: 'Tags', results: [{type: 'tag', title: 'Cooking'}]},
|
||||
videos: {name: 'Videos', results: [
|
||||
{title: 'How To Sharpen An Axe', description: 'Wranglerstar', location: '/videos/1'},
|
||||
{title: 'Big Buck Bunny', description: 'Blender', location: '/videos/1'},
|
||||
]},
|
||||
};
|
||||
|
||||
|
|
@ -470,7 +470,7 @@ describe('SearchResultsInput', () => {
|
|||
handleResultSelect={handleResultSelect}/>);
|
||||
|
||||
await userEvent.click(screen.getByRole('combobox'));
|
||||
await userEvent.click(screen.getByText('How To Sharpen An Axe'));
|
||||
await userEvent.click(screen.getByText('Big Buck Bunny'));
|
||||
|
||||
expect(handleResultSelect).toHaveBeenCalledWith(
|
||||
{result: expect.objectContaining({location: '/videos/1'})});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue