From a1d68b577a4124ca930dd3864f84055b287c4c13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Go=CC=81mez=20Bachiller?= Date: Sun, 28 Apr 2024 23:50:54 +0200 Subject: [PATCH] fix: update translation --- e2e/search/opening-search-box.spec.ts | 4 ++-- e2e/search/searching-books.spec.ts | 4 ++-- src/app/@modal/(.)search/components/search-modal.tsx | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/e2e/search/opening-search-box.spec.ts b/e2e/search/opening-search-box.spec.ts index ab31bb4..ea9a756 100644 --- a/e2e/search/opening-search-box.spec.ts +++ b/e2e/search/opening-search-box.spec.ts @@ -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') }) @@ -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') }) }) diff --git a/e2e/search/searching-books.spec.ts b/e2e/search/searching-books.spec.ts index b14b46c..50a4447 100644 --- a/e2e/search/searching-books.spec.ts +++ b/e2e/search/searching-books.spec.ts @@ -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') diff --git a/src/app/@modal/(.)search/components/search-modal.tsx b/src/app/@modal/(.)search/components/search-modal.tsx index e54a74f..728ba18 100644 --- a/src/app/@modal/(.)search/components/search-modal.tsx +++ b/src/app/@modal/(.)search/components/search-modal.tsx @@ -76,7 +76,7 @@ export function SearchModal() { defaultValue={query} endContent={} onValueChange={handleSearch} - placeholder="Buscar actividad" + placeholder="Buscar libro" startContent={} /> Loading...}>