Conversation
💚 Build Succeeded |
|
retest |
💚 Build Succeeded |
f4ccd04 to
dce2452
Compare
💚 Build Succeeded |
maryia-lapata
left a comment
There was a problem hiding this comment.
LGTM,
I run tests locally (Mac)
LeeDr
left a comment
There was a problem hiding this comment.
LGTM - I ran all 'visual builder' tests locally on Windows with Chrome browser and all 26 tests passed. I made one comment about finding data-test-subj's that start with the value parameter but it's not really a change in this PR.
Just for fun I re-ran the 'visual builder' tests with this change (= instead of ^=) and they all passed;
diff --git a/test/functional/services/combo_box.ts b/test/functional/services/combo_box.ts
index 2e44e0248c..65270eac98 100644
--- a/test/functional/services/combo_box.ts
+++ b/test/functional/services/combo_box.ts
@@ -74,7 +74,7 @@ export function ComboBoxProvider({ getService, getPageObjects }: FtrProviderCont
if (value !== undefined) {
const selectOptions = await find.allByCssSelector(
- `.euiFilterSelectItem[title^="${value.toString().trim()}"]`,
+ `.euiFilterSelectItem[title="${value.toString().trim()}"]`,
WAIT_FOR_EXISTS_TIME
);But I didn't run all tests so not fully tested.
| if (value !== undefined) { | ||
| const options = await find.allByCssSelector( | ||
| const selectOptions = await find.allByCssSelector( | ||
| `.euiFilterSelectItem[title^="${value.toString().trim()}"]`, |
There was a problem hiding this comment.
I guess this isn't a change in this PR, but I don't understand why we're only looking for the case where the element's title attribute starts with value. I would think we would want to find the element who's title equals value? Maybe this was an issue with data-test-subj's with spaces in them? If that issue is fixed maybe we could improve this here for exact match?
There was a problem hiding this comment.
It is used to match drop-down option that starts with provided text. I remember testing related PR and may confirm we need it for some tests
…-to-np-ready * 'master' of github.com:elastic/kibana: (45 commits) Fixing flaky copy-to-space test (elastic#44656) [ML] Enable data visualizer link on job types page for non-time index (elastic#44667) [ML] Adding index pattern title to wizard summary step (elastic#44662) Convert remaining data.indexPatterns items to use TS (elastic#44654) [visualize/_tsvb_time_series] fix flaky test (elastic#44505) [SIEM] Updates fields in map tooltip and fixes filtering on undefined values (elastic#44718) [SIEM] Remove deprecation warning from momentJS test (elastic#44732) [SIEM] Fixes the rendering order and adds unit tests to prevent rendering to get out of order (elastic#44728) [optimizer] use more precise cache-busting strategy (elastic#44724) [Maps] Reverse the attribution order so left-to-right order matches top-to-bottom (elastic#44415) Update sinon related packages (elastic#43952) [SIEM] change flag to drag and drop field (elastic#44705) Update dependency @types/object-hash to ^1.3.0 (elastic#43954) mark eslint config as root (elastic#44699) Adds geo_point to normalizeType helper (elastic#44410) [Uptime]Feature/38542 align uptime help menu with other apps (elastic#44536) Removed unused remove icon component (elastic#44698) Update unit tests to remove warnings from test output. (elastic#41840) Fix rawChecksums in chromium build and rename for clarity (elastic#44665) [Uptime]removed extra slash from integeration urls (elastic#44469) ... # Conflicts: # rfcs/text/0004_application_service_mounting.md
…ana into chore/console-to-np-ready * 'chore/console-to-np-ready' of github.com:jloleysens/kibana: (45 commits) Fixing flaky copy-to-space test (elastic#44656) [ML] Enable data visualizer link on job types page for non-time index (elastic#44667) [ML] Adding index pattern title to wizard summary step (elastic#44662) Convert remaining data.indexPatterns items to use TS (elastic#44654) [visualize/_tsvb_time_series] fix flaky test (elastic#44505) [SIEM] Updates fields in map tooltip and fixes filtering on undefined values (elastic#44718) [SIEM] Remove deprecation warning from momentJS test (elastic#44732) [SIEM] Fixes the rendering order and adds unit tests to prevent rendering to get out of order (elastic#44728) [optimizer] use more precise cache-busting strategy (elastic#44724) [Maps] Reverse the attribution order so left-to-right order matches top-to-bottom (elastic#44415) Update sinon related packages (elastic#43952) [SIEM] change flag to drag and drop field (elastic#44705) Update dependency @types/object-hash to ^1.3.0 (elastic#43954) mark eslint config as root (elastic#44699) Adds geo_point to normalizeType helper (elastic#44410) [Uptime]Feature/38542 align uptime help menu with other apps (elastic#44536) Removed unused remove icon component (elastic#44698) Update unit tests to remove warnings from test output. (elastic#41840) Fix rawChecksums in chromium build and rename for clarity (elastic#44665) [Uptime]removed extra slash from integeration urls (elastic#44469) ...
Summary
There is a test that constantly fails locally and somehow more stable on CI.
The issue is failing click on dropdown option on TSVB Series Option tab, it fails with StaleElementException.

The only working option for me was to click with a mouse (works on both Chrome and Firefox)
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers