Skip to content

Commit d84764a

Browse files
committed
Fix disabled-due setting test
1 parent 68af796 commit d84764a

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

tests/unit/specs/components/Step.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ describe('Step.vue', () => {
148148
it('Check if the Step.vue component has the expected UI if disabled due is set', () => {
149149
wrapper.setProps({
150150
disabledDue: 'ND',
151-
enabled: true,
151+
enabled: false,
152152
reversed: false,
153153
selected: false,
154154
stepName: 'SA',

tests/unit/specs/components/__snapshots__/Step.spec.js.snap

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ exports[`Step.vue Check if the Step.vue component has the expected UI if current
1515

1616
exports[`Step.vue Check if the Step.vue component has the expected UI if disabled due is set 1`] = `
1717
<div class="step-content">
18-
<div class="step-actions">
19-
<div class="field not-selected">
20-
<b-radio-stub value="no" nativevalue="yes"><span class="vocab-body body-normal">stepper.yesstepper.SA.selected</span></b-radio-stub>
21-
</div>
22-
<div class="field selected">
23-
<b-radio-stub value="no" nativevalue="no"><span class="vocab-body body-normal">stepper.nostepper.SA.not-selected</span></b-radio-stub>
24-
</div>
18+
<div class="step-description vocab-body body-normal">
19+
<p class="vocab-body body-normal">
20+
stepper.disabled-text-ND
21+
</p>
2522
</div>
2623
</div>
2724
`;

0 commit comments

Comments
 (0)