Skip to content

Commit

Permalink
fix: update translation
Browse files Browse the repository at this point in the history
  • Loading branch information
sgomez committed Apr 28, 2024
1 parent 5e94e3e commit a1d68b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions e2e/search/opening-search-box.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ test.describe('Opening search book', () => {
await page.getByPlaceholder('Búsqueda rápida...').click()
await page.waitForSelector('[role=dialog]')
// Assert
await expect(page.getByPlaceholder('Buscar actividad')).toBeVisible()
await expect(page.getByPlaceholder('Buscar libro')).toBeVisible()
await expect(page).toHaveURL('/search')
})

Expand All @@ -19,7 +19,7 @@ test.describe('Opening search book', () => {
await page.keyboard.press('Control+k')
await page.waitForSelector('[role=dialog]')
// Assert
await expect(page.getByPlaceholder('Buscar actividad')).toBeVisible()
await expect(page.getByPlaceholder('Buscar libro')).toBeVisible()
await expect(page).toHaveURL('/search')
})
})
4 changes: 2 additions & 2 deletions e2e/search/searching-books.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ test.describe('Searching books', () => {
await page.goto('/')
await page.getByPlaceholder('Búsqueda rápida...').click()
// Act
await page.getByPlaceholder('Buscar actividad').click()
await page.getByPlaceholder('Buscar actividad').pressSequentially('example')
await page.getByPlaceholder('Buscar libro').click()
await page.getByPlaceholder('Buscar libro').pressSequentially('example')
// Assert
await expect(page.getByLabel('Found books').first()).toBeVisible()
await expect(page).toHaveURL('/search?query=example')
Expand Down
2 changes: 1 addition & 1 deletion src/app/@modal/(.)search/components/search-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function SearchModal() {
defaultValue={query}
endContent={<Kbd keys={'escape'}></Kbd>}
onValueChange={handleSearch}
placeholder="Buscar actividad"
placeholder="Buscar libro"
startContent={<SearchIcon />}
/>
<Suspense fallback={<>Loading...</>}>
Expand Down

0 comments on commit a1d68b5

Please sign in to comment.