From ddfd573e4f6acbe8152a91e6f3f6df2f528a58d5 Mon Sep 17 00:00:00 2001 From: Ashwin P Chandran Date: Fri, 30 Jun 2023 04:27:11 +0000 Subject: [PATCH] fix syntax Signed-off-by: Ashwin P Chandran --- test/functional/apps/visualize/_area_chart.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/apps/visualize/_area_chart.js b/test/functional/apps/visualize/_area_chart.js index e292e6c82d78..3ca202501667 100644 --- a/test/functional/apps/visualize/_area_chart.js +++ b/test/functional/apps/visualize/_area_chart.js @@ -524,13 +524,13 @@ export default function ({ getService, getPageObjects }) { const intervalErrorMessageSelector = '[data-test-subj="visEditorInterval"] + .euiFormErrorText'; - let errorMessage = await find - .byCssSelector(intervalErrorMessageSelector) - .getVisibleText(); + let intervalErrorMessage = await find.byCssSelector(intervalErrorMessageSelector); + let errorMessage = await intervalErrorMessage.getVisibleText(); expect(errorMessage).to.be('Invalid calendar interval: 2w, value must be 1'); await PageObjects.visEditor.setInterval('3w', { type: 'custom' }); - errorMessage = await find.byCssSelector(intervalErrorMessageSelector).getVisibleText(); + intervalErrorMessage = await find.byCssSelector(intervalErrorMessageSelector); + errorMessage = await intervalErrorMessage.getVisibleText(); expect(errorMessage).to.be('Invalid calendar interval: 3w, value must be 1'); }); });