Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Aug 8, 2024
1 parent 6638e38 commit 735eb7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/app/playwright/30-search/search.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { test, expect } from '@playwright/test';

test('Successfully rebuild index', async({ page }) => {
await page.goto('/admin/search');

await page.getByTestId('rebuild-index-button').click();

await expect(page.getByTestId('rebuild-status')).toContainText('Completed');
});

test('Search page with "q" param is successfully loaded', async({ page }) => {
// Navigate to the search page with query parameters
await page.goto('/_search?q=alerts');
Expand Down

0 comments on commit 735eb7b

Please sign in to comment.