[OCISDEV-843] Flaky search test - 2nd fix#13800
Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
90bdfab to
6fed9cd
Compare
|
My opinions:
It wasn't. That's the whole reason OCISDEV-843 exists. The test was already flaky. The original playwright port (commit 9bd7e30cc) had the exact same code: presses enter + titleOnly + searchList. It was broken from day one — just got lucky sometimes. I also tried many times to fix it but no luck.
After pressing Enter, two things happen:
The assertion then reads from the wrong DOM element:
After Enter, the actual search results live in the So @deyankiteworks Were you testing this test locally with Tika enabled? Because Without Tika, |
|
On PR #13831, I ran the search test 10 times in CI with the
The one-line change in resourcePage.searchList → resourcePage.filesListAfter The results render in
Your rework in this PR avoids this by removing If you'd rather keep that coverage, you could take the |
8aabee1 to
f4a2f0c
Compare
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Thanks for the comments and the proposed fix. I reverted back the Let's wait the CI jobs to finish and to check if the flaky search test will pass successfuly. |
|
* fix(e2e): [OCISDEV-843] Use correct listType for search results after pressing Enter * fix(e2e): [OCISDEV-843] Keeps resourcePage.searchList as the correct listType * fix(e2e): [OCISDEV-843] Using the filesList fix for listType Co-authored-by: Deyan Zhekov <deyan.zhekov@kiteworks.com>


Summary
resourcePage.filesListinstead ofresourcePage.searchListfor asserting search results after pressing EnterResourceTablewith[data-test-resource-path]selectors — NOT the dropdown (#files-global-search-options)waitForTimeoutworkaround from the first fix attemptRelated Issue
Test plan
🤖 Generated with Claude Code