Skip to content

Commit

Permalink
improving logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jgowdyelastic committed Sep 16, 2020
1 parent 12aa78d commit fb025a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x-pack/test/functional/services/ml/job_wizard_common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export function MachineLearningJobWizardCommonProvider(

async toggleStartDatafeedSwitch(toggle: boolean) {
const subj = 'mlJobWizardStartDatafeedCheckbox';
if ((await this.getStartDatafeedSwitchCheckedState()) === !toggle) {
if ((await this.getStartDatafeedSwitchCheckedState()) !== toggle) {
await retry.tryForTime(5 * 1000, async () => {
await testSubjects.clickWhenNotDisabled(subj);
await this.assertStartDatafeedSwitchCheckedState(toggle);
Expand Down

0 comments on commit fb025a1

Please sign in to comment.