Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyos committed Mar 18, 2020
1 parent 904e584 commit a0d3fef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const SimpleSettings = ({
checked={createIndexPattern === true}
disabled={initialized === true}
onChange={onCreateIndexPatternChange}
data-test-subj="mlFileDataVistCreateIndexPatternCheckbox"
data-test-subj="mlFileDataVisCreateIndexPatternCheckbox"
/>
</React.Fragment>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ export function MachineLearningDataVisualizerFileBasedProvider(
},

async assertCreateIndexPatternCheckboxValue(expectedValue: boolean) {
const isChecked = await testSubjects.isChecked('mlFileDataVistCreateIndexPatternCheckbox');
const isChecked = await testSubjects.isChecked('mlFileDataVisCreateIndexPatternCheckbox');
expect(isChecked).to.eql(
expectedValue,
`Expected create index pattern checkbox to be ${expectedValue ? 'checked' : 'unchecked'}`
);
},

async setCreateIndexPatternCheckboxState(newState: boolean) {
const isChecked = await testSubjects.isChecked('mlFileDataVistCreateIndexPatternCheckbox');
const isChecked = await testSubjects.isChecked('mlFileDataVisCreateIndexPatternCheckbox');
if (isChecked !== newState) {
// this checkbox can't be clicked directly, instead click the corresponding label
const panel = await testSubjects.find('mlFileDataVisImportSettingsPanel');
Expand Down

0 comments on commit a0d3fef

Please sign in to comment.