Skip to content

Commit

Permalink
update functional test service for new code editor
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarezmelissa87 committed Aug 16, 2021
1 parent f89b1e8 commit c895106
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ export function MachineLearningDataFrameAnalyticsCreationProvider(
async assertRuntimeMappingsEditorContent(expectedContent: string[]) {
await this.assertRuntimeMappingEditorExists();

const runtimeMappingsEditorString = await aceEditor.getValue(
'mlDataFrameAnalyticsAdvancedRuntimeMappingsEditor'
);
const wrapper = await testSubjects.find('mlDataFrameAnalyticsAdvancedRuntimeMappingsEditor');
const editor = await wrapper.findByCssSelector('.monaco-editor .view-lines');
const runtimeMappingsEditorString = await editor.getVisibleText();
// Not all lines may be visible in the editor and thus aceEditor may not return all lines.
// This means we might not get back valid JSON so we only test against the first few lines
// and see if the string matches.
Expand Down

0 comments on commit c895106

Please sign in to comment.