diff --git a/package.json b/package.json index 5137af553fff5..a9721f05f997b 100644 --- a/package.json +++ b/package.json @@ -230,7 +230,7 @@ "@babel/register": "^7.10.5", "@babel/types": "^7.11.0", "@elastic/apm-rum": "^5.6.1", - "@elastic/charts": "23.1.1", + "@elastic/charts": "23.2.0", "@elastic/ems-client": "7.10.0", "@elastic/eslint-config-kibana": "0.15.0", "@elastic/eslint-plugin-eui": "0.0.2", diff --git a/packages/kbn-ui-shared-deps/package.json b/packages/kbn-ui-shared-deps/package.json index 6f13e461cccb9..059c3bf744ae0 100644 --- a/packages/kbn-ui-shared-deps/package.json +++ b/packages/kbn-ui-shared-deps/package.json @@ -9,7 +9,7 @@ "kbn:watch": "node scripts/build --dev --watch" }, "dependencies": { - "@elastic/charts": "23.1.1", + "@elastic/charts": "23.2.0", "@elastic/eui": "29.3.0", "@elastic/numeral": "^2.5.0", "@kbn/i18n": "1.0.0", diff --git a/test/functional/page_objects/discover_page.ts b/test/functional/page_objects/discover_page.ts index e522f41952a49..f1aec644817cb 100644 --- a/test/functional/page_objects/discover_page.ts +++ b/test/functional/page_objects/discover_page.ts @@ -158,7 +158,8 @@ export function DiscoverPageProvider({ getService, getPageObjects }: FtrProvider await browser.dragAndDrop( { location: el, offset: { x: -300, y: 20 } }, - { location: el, offset: { x: -100, y: 30 } } + { location: el, offset: { x: -100, y: 30 } }, + 200 ); } diff --git a/test/functional/services/common/browser.ts b/test/functional/services/common/browser.ts index f5fb54c72177f..029632a85af22 100644 --- a/test/functional/services/common/browser.ts +++ b/test/functional/services/common/browser.ts @@ -218,11 +218,13 @@ export async function BrowserProvider({ getService }: FtrProviderContext) { * * @param {{element: WebElementWrapper | {x: number, y: number}, offset: {x: number, y: number}}} from * @param {{element: WebElementWrapper | {x: number, y: number}, offset: {x: number, y: number}}} to + * @param delay in ms * @return {Promise} */ public async dragAndDrop( from: { offset?: { x: any; y: any }; location: any }, - to: { offset?: { x: any; y: any }; location: any } + to: { offset?: { x: any; y: any }; location: any }, + delay = 0 ) { // The offset should be specified in pixels relative to the center of the element's bounding box const getW3CPoint = (data: any) => { @@ -237,7 +239,13 @@ export async function BrowserProvider({ getService }: FtrProviderContext) { const startPoint = getW3CPoint(from); const endPoint = getW3CPoint(to); await this.getActions().move({ x: 0, y: 0 }).perform(); - return await this.getActions().move(startPoint).press().move(endPoint).release().perform(); + return await this.getActions() + .move(startPoint) + .press() + .pause(delay) + .move(endPoint) + .release() + .perform(); } /** diff --git a/yarn.lock b/yarn.lock index eb31eabc5749d..f7ac0f5f1cc3a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1218,10 +1218,10 @@ dependencies: "@elastic/apm-rum-core" "^5.7.0" -"@elastic/charts@23.1.1": - version "23.1.1" - resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-23.1.1.tgz#01f51d80f4ba7291dd68fe75f23a71f77e44dce9" - integrity sha512-qoDBzo4r2Aeh2JmbpWxkN+xI/PZ7HyNr91HLqewadMCnSR2tqviBrUySttX/SpBxE/0VoN4gd/T8vcjCt2a/GQ== +"@elastic/charts@23.2.0": + version "23.2.0" + resolved "https://registry.yarnpkg.com/@elastic/charts/-/charts-23.2.0.tgz#4266cf5d7864cac2bc274846ee96172d6fe47230" + integrity sha512-SMvHjuiSvKLuwnM+EkgAYuVp0dgJAgqKBFe0lQ5HquXDPjybesCbO+4bJnY2eOcvIyMdeqnr1y35oMfiNCGE4g== dependencies: "@popperjs/core" "^2.4.0" chroma-js "^2.1.0"