Shun Miyazawa 1 年之前
父節點
當前提交
52e1f39fd3
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      apps/app/playwright/30-search/search.spect.ts

+ 8 - 0
apps/app/playwright/30-search/search.spect.ts

@@ -7,3 +7,11 @@ test('Successfully rebuild index', async({ page }) => {
 
   await expect(page.getByTestId('connection-status-label')).toHaveText('CONNECTED');
 });
+
+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');
+
+  // Confirm search result elements are visible
+  await expect(page.getByTestId('search-result-base')).toBeVisible();
+});