await ui.waitForDataLoaded();
await user.click(await ui.qualityProfileActions.find());
- expect(ui.setAsDefaultButton.query()).not.toBeInTheDocument();
+ expect(ui.setAsDefaultButton.get()).toBeDisabled();
});
it("should be able to delete a Quality Profile and it's children", async () => {
placement={PopupPlacement.Left}
overlay={translate('quality_profiles.cannot_set_default_no_rules')}
>
- <span className="it__quality-profiles__set-as-default">
+ <ItemButton
+ className="it__quality-profiles__set-as-default"
+ onClick={this.handleSetDefaultClick}
+ disabled
+ >
{translate('set_as_default')}
- </span>
+ </ItemButton>
</Tooltip>
</li>
) : (