Files
openobserve/tests
Neha P efd2bab4a7 test: e2e- sortorder-testcases (#7445)
### **PR Type**
Tests, Enhancement


___

### **Description**
- Add case-insensitive search helper methods

- Implement log count ordering verification

- Refactor tests to use new page-object methods

- Add 15-minute relative time selector helper


___

### **Changes diagram**

```mermaid
flowchart LR
  A["LogsPage page object"]
  B["playwright tests"]
  A -- "add search & ordering methods" --> B
  B -- "invoke helpers in specs" --> C["Improved test coverage"]
```


___



### **Changes walkthrough** 📝
<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>logsPage.js</strong><dd><code>Add log ordering and
ignore-case helpers</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; </dd></summary>
<hr>

tests/ui-testing/pages/logsPage.js

<li>Added locators for query editor and refresh button<br> <li>
Implemented verifyLogCountOrdering (asc/desc)<br> <li> Added
searchWithStringMatchIgnoreCase method<br> <li> Added
setDateTimeTo15Minutes helper


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7445/files#diff-6af0f73f0523e6fccd38532cb454dc58c4ef1fe4ef5bc5a135ef3f0ee5371ef6">+74/-0</a>&nbsp;
&nbsp; </td>

</tr>
</table></td></tr><tr><td><strong>Tests</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>logsqueries.spec.js</strong><dd><code>Use new page
helpers in specs</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; &nbsp; &nbsp; &nbsp;
&nbsp; </dd></summary>
<hr>

tests/ui-testing/playwright-tests/logsqueries.spec.js

<li>Refactored string-match tests to use page methods<br> <li> Replaced
inline date-time selection with helper<br> <li> Added test for logcount
ordering verification<br> <li> Cleaned up test formatting and timeouts


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/7445/files#diff-aee28776157572aac692a692c53f8d5aebfe8d01d1a7addf14f3a3f92c35b3a5">+24/-50</a>&nbsp;
</td>

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

___

> <details> <summary> Need help?</summary><li>Type <code>/help how to
...</code> in the comments thread for any questions about PR-Agent
usage.</li><li>Check out the <a
href="https://qodo-merge-docs.qodo.ai/usage-guide/">documentation</a>
for more information.</li></details>
2025-07-03 17:30:27 +05:30
..
2024-09-22 17:57:47 +08:00