kibana/test
Gerard Soldevila 1bc5b6f43e
Improve ui applications navigation functional tests (#171314)
## Summary

Fix https://github.com/elastic/kibana/issues/53356

The PR brings a couple of main improvements:
* `apps_menu.clickLink()` the logic is sometimes not able to find the
right element "by partial link name". Adding a `category` parameter
helped narrow it down, but in some scenarios our applications are not
under any section, so we can't leverage this parameter. I have rewritten
the case where no `category` is specified, in order to fetch all side
nav links first, and then filter for the matching ones. This seems to
behave correctly 100% of times (at least confirmed by FTR below).
* Adds the extra `category` parameter for those scenarios where it can
be passed. It helps disambiguate when multiple links might match the
text (e.g. _Recent_), and reduces the odds of tests being flaky.

---

➡️ Flaky Test Runner Pipeline - 200x 🔴

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4004

➡️ Rewrite
[apps_menu.clickLink()](5014947f6e)

➡️ Flaky Test Runner Pipeline - 150x 🟢 
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4011

➡️ CI
[failed](https://buildkite.com/elastic/kibana-pull-request/builds/176461),
so I pushed [this
commit](943d533156).

➡️ One last Flaky Test Runner Pipeline - 200x 🟢
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/4028
2023-11-22 12:20:16 -05:00
..
accessibility Unskip a11y skipped tests in console & discover (#162903) 2023-08-02 08:15:08 -04:00
analytics async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
api_integration [Tests] apis UI Counters UI remove dependency on date (#170734) 2023-11-14 06:37:52 -07:00
common async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
examples Functional tests for KibanaErrorBoundary (#170569) 2023-11-08 11:23:19 -07:00
functional Improve ui applications navigation functional tests (#171314) 2023-11-22 12:20:16 -05:00
harden Add test to ensure security related eslint rules are applied (#151434) 2023-02-24 16:48:11 +01:00
health_gateway async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_api_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
interactive_setup_functional Unskip interactive setup functional tests (#157863) 2023-05-16 09:20:00 -04:00
interpreter_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
node_roles_functional async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
package Adds base implementation of the Kibana Health Gateway. (#141172) 2022-11-07 09:14:42 -07:00
plugin_functional Improve ui applications navigation functional tests (#171314) 2023-11-22 12:20:16 -05:00
scripts Upgrading cypress to 12.17.4 (#165869) 2023-09-19 10:15:53 -07:00
server_integration async-import plugins in the server side (#170856) 2023-11-15 00:55:56 -07:00
ui_capabilities/newsfeed_err [ftr] automatically determine config run order (#130983) 2022-05-04 17:05:58 -05:00
tsconfig.json [Security Solution] Support Serverless Cypress tests with different roles (#169017) 2023-10-31 09:39:47 -07:00