From 9b411bd672c3ab9c269310c3826196cdfff990d3 Mon Sep 17 00:00:00 2001 From: Shun Miyazawa Date: Fri, 9 Aug 2024 06:10:08 +0000 Subject: [PATCH] test ci --- apps/app/playwright/30-search/search.spec.ts | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/apps/app/playwright/30-search/search.spec.ts b/apps/app/playwright/30-search/search.spec.ts index c2f6d860f25..3b75c5d8541 100644 --- a/apps/app/playwright/30-search/search.spec.ts +++ b/apps/app/playwright/30-search/search.spec.ts @@ -1,14 +1,15 @@ -import { test, expect } from '@playwright/test'; +import { test, expect, Logger } from '@playwright/test'; -// test('Successfully rebuild index', async({ page }) => { -// await page.goto('/admin/search'); +test('Successfully rebuild index', async({ page }) => { + await page.goto('/admin/search'); -// await expect(page.getByTestId('admin-full-text-search')).toBeVisible(); + await expect(page.getByTestId('admin-full-text-search')).toBeVisible(); -// await page.getByTestId('rebuild-index-button').click(); -// await expect(page.getByTestId('rebuild-status')).toContainText('Completed'); -// }); + // 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 @@ -17,8 +18,8 @@ test('Search page with "q" param is successfully loaded', async({ page }) => { // Confirm search result elements are visible await expect(page.getByTestId('search-result-base')).toBeVisible(); + await expect(page.getByTestId('connection-status-badge-connected')).toHaveText('CONNECTED'); - await expect(page.locator('.search-result-list')).toContainText('0 pages'); // await expect(page.getByTestId('search-result-list')).toBeVisible(); // await expect(page.getByTestId('search-result-content')).toBeVisible();