Laura10101 / contractor-tax-calculator

0 stars 2 forks source link

Rule type dialog is not hidden after selecting a rule type when creating a rule #206

Closed Laura10101 closed 10 months ago

Laura10101 commented 10 months ago

● Rule views views › Creating rules › Choosing a rule type › should display the flat rate rule dialog when flat rate rule chosen ● Rule views views › Creating rules › Choosing a rule type › should display the tiered rate rule dialog when tiered rate rule chosen ● Rule views views › Creating rules › Choosing a rule type › should display the secondary tiered rate rule dialog when secondary tiered rate rule chosen

Expected: false
Received: true

  909 |                 expect(app.dialogState.entity).toBe(null);
  910 |                 expect(isShown(flatRateRuleDialog.dialog.id)).toBe(true);
> 911 |                 expect(isShown(ruleTypeDialog.dialog.id)).toBe(false);
      |                                                           ^
Laura10101 commented 10 months ago

This was due to the fade class being added to the rule type dialog. Removed this class.