Skip to content

Commit 2521757

Browse files
committed
[ML] Use getRuntimeMappingsEditorSwitchCheckedState
1 parent c2cb88d commit 2521757

File tree

1 file changed

+1
-5
lines changed
  • x-pack/test/functional/services/transform

1 file changed

+1
-5
lines changed

x-pack/test/functional/services/transform/wizard.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,7 @@ export function TransformWizardProvider({ getService, getPageObjects }: FtrProvi
314314
},
315315

316316
async assertRuntimeMappingsEditorSwitchCheckState(expectedCheckState: boolean) {
317-
const actualCheckState =
318-
(await testSubjects.getAttribute(
319-
'transformAdvancedRuntimeMappingsEditorSwitch',
320-
'aria-checked'
321-
)) === 'true';
317+
const actualCheckState = await this.getRuntimeMappingsEditorSwitchCheckedState();
322318
expect(actualCheckState).to.eql(
323319
expectedCheckState,
324320
`Advanced runtime mappings editor switch check state should be '${expectedCheckState}' (got '${actualCheckState}')`

0 commit comments

Comments
 (0)