Files
openobserve/tests/ui-testing
Neha PandClaude fa5072547a test: enrichment schema mismatch testcases (#10092)
### **PR Type**
Enhancement, Bug fix, Tests


___

### **Description**
- Fix dynamic edit/delete button selection in POM

- Add POM helper methods (save, error check, navigation)

- Enhance URL tests with per-test cleanup

- Add URL Jobs dialog schema mismatch test


___



<details> <summary><h3> File Walkthrough</h3></summary>

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>enrichmentPage.js`</strong><dd><code>POM enhancements
and button index fixes</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; </dd></summary>
<hr>

`tests/ui-testing/pages/generalPages/enrichmentPage.js`

<ul><li>Use dynamic index to find edit/delete buttons<br> <li> Add POM
methods: clickSave, error notification, navigation<br> <li> Implement
URL Jobs dialog interactions (open, verify, close)<br> <li> Provide
deleteTableIfExists cleanup utility</ul>


</details>


  </td>
  <td><a href=""></a></td>

</tr>
</table></td></tr><tr><td><strong>Tests</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>enrichment-table-url.spec.js`</strong><dd><code>Test
cleanup and schema mismatch dialog test</code>&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>


`tests/ui-testing/playwright-tests/Functions/enrichment-table-url.spec.js`

<ul><li>Track <code>currentTableName</code> for per-test cleanup<br>
<li> Replace raw save/cancel with new POM methods<br> <li> Refactor
URL-404 handling using <code>searchTableWithRetry</code><br> <li> Add
<code>URL Jobs dialog</code> schema mismatch test</ul>


</details>


  </td>
  <td><a href=""></a></td>

</tr>

<tr>
  <td>
    <details>
<summary><strong>cleanup.spec.js`</strong><dd><code>Add schema mismatch
cleanup regex</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

`tests/ui-testing/playwright-tests/cleanup.spec.js`

- Extend cleanup regex to include `schema_mismatch_<uuid>` pattern


</details>


  </td>
  <td><a href=""></a></td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-20 12:10:11 +05:30
..
2024-11-13 15:13:36 +05:30

zinc-observe-ui-automation

Playwright UI Testing

Installation

npm install

Running Tests

cd playwright-runner
npm start

Then open http://localhost:3000 to access the test runner interface.

Using Command Line

# Run all tests
npx playwright test

# Run specific test by tag
npx playwright test -g @alertsImportExport

# Run in headed mode
npx playwright test --headed

# Run specific test file
npx playwright test Alerts/alerts-import.spec.js

Environment Configuration

Tests can be configured using:

  1. Playwright Runner UI - Set environment variables through the web interface
  2. Environment Variables - Set variables in terminal or .env file