Files
openobserve/tests/ui-testing/pages/generalPages
Shrinath Rao a342fab1e9 fix(e2e): improve stream selection in schema pagination test (#9809)
### **User description**
## Summary
- Fixes failing sanity test "should display pagination for schema" by
improving stream selection after page reload
- Uses search-and-filter approach to reliably find and select the
e2e_automate stream
- Replaces broken pagination selector with proper data-test attribute
selector
- Adds proper error handling when stream selection fails

## Test plan
- [x] Run sanity pagination test - passes
- [x] Run all sanity tests - 14 passed, 3 skipped


___

### **PR Type**
Bug fix, Tests


___

### **Description**
- Refactor stream selection using search-filter input

- Add multiple fallback click methods and throw error on failure

- Replace flaky pagination dropdown click with pagination button wait


___

### Diagram Walkthrough


```mermaid
flowchart LR
  A["Page reload"] --> B["Stream select input visible"]
  B --> C["Click and fill filter input"]
  C --> D["Wait for stream toggle visible"]
  D --> E["Click toggle element"]
  D --> F["Fallback: click toggle element"]
  F --> G["Fallback: click by text"]
  G --> H["Error thrown on failure"]
  E --> I["Pagination first page button visible"]
```



<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>sanityPage.js</strong><dd><code>Enhance stream
selection and pagination wait</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

tests/ui-testing/pages/generalPages/sanityPage.js

<ul><li>Use search-filter input for stream dropdown selection<br> <li>
Add multiple fallback mechanisms with descriptive logs<br> <li> Throw
meaningful error when stream selection fails<br> <li> Replace pagination
dropdown click with first-page button wait</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9809/files#diff-a0ac0217ef875311dc536edb97deda19927a64e73cede62123b97cbe7df113b8">+37/-19</a>&nbsp;
</td>

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

</details>

___
2025-12-30 20:21:42 +05:30
..
2025-07-16 12:20:13 +05:30