Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Ashwin P Chandran <ashwinpc@amazon.com>
  • Loading branch information
ashwin-pc committed Jun 30, 2023
1 parent 1d4d4ba commit ddfd573
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/functional/apps/visualize/_area_chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
});
Expand Down

0 comments on commit ddfd573

Please sign in to comment.