Files
openobserve/tests/ui-testing/pages
Shrinath Rao d9955aac86 test: enhanced unflattened test to not be flaky (#8808)
### **PR Type**
Tests


___

### **Description**
- Stabilize unflattened Playwright tests

- Add structured test logging throughout

- Increase waits for indexing and UI readiness

- Ensure query refresh and result validation


___

### Diagram Walkthrough


```mermaid
flowchart LR
  Login["Login and setup"] -- "ingestion + waits" --> Streams["Open Streams"]
  Streams -- "configure store original data" --> Schema["Update Schema"]
  Schema -- "ingest + index wait" --> Explore["Explore Logs"]
  Explore -- "set time range" --> Results["Load Results"]
  Results -- "expand row" --> Details["_o2_id in details"]
  Explore -- "SQL mode + SELECT * + refresh" --> Results
```



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

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Tests</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>unflattened.spec.js</strong><dd><code>Stabilize
unflattened Playwright tests with logging</code>&nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

tests/ui-testing/playwright-tests/Logs/unflattened.spec.js

<ul><li>Add structured testLogger.info/error messages.<br> <li> Replace
flaky short waits; add longer indexing waits.<br> <li> Add query
refresh, SQL mode selection, and result assertions.<br> <li> Minor
formatting fixes and consistent waits in setup/teardown.</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/8808/files#diff-35703a04047bd3dc257e8e606360e196f9ead45fc44f3857a6e04023590f1a1e">+171/-137</a></td>

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

</details>

___
2025-10-15 05:44:53 +05:30
..