playwright: added proper await for table entity to load before accessing the field (#23385)

* playwright: added proper await for table entity to load before accessing the field

* chore(test): mark bulk re-deploy pipelines test as slow
This commit is contained in:
Shailesh Parmar 2025-09-15 17:17:52 +05:30 committed by GitHub
parent f1039fdb40
commit d71a1cef85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

@ -143,7 +143,11 @@ test.describe('Add TestCase New Flow', () => {
const testCaseDoc = page.waitForResponse(
'/locales/en-US/OpenMetadata/TestCaseForm.md'
);
const tableEntityResponse = page.waitForResponse(
'/api/v1/search/query?q=*&index=table_search_index*'
);
await page.getByTestId('add-test-case-btn').click();
await tableEntityResponse;
await page.waitForSelector('[data-testid="test-case-form-v1"]', {
state: 'visible',
});

View File

@ -23,6 +23,8 @@ const table1 = new TableClass();
const table2 = new TableClass();
test.describe('Bulk Re-Deploy pipelines ', () => {
test.slow();
test.beforeAll('Setup pre-requests', async ({ browser }) => {
const { afterAction, apiContext } = await createNewPage(browser);