Skip to content

Commit

Permalink
[FEATURE] Masquer le pourcentage de progression dans la navbar Modulix (
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Nov 18, 2024
2 parents 8a8d2fd + 81de238 commit 472da35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mon-pix/app/components/module/navbar.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default class ModulixNavbar extends Component {
{{@currentStep}}/{{@totalSteps}}
</div>

<PixProgressGauge @value={{this.progressValue}} @label="Avancement du module" />
<PixProgressGauge @hidePercentage={{true}} @isDecorative={{true}} @value={{this.progressValue}} />
</div>
</nav>
</template>
Expand Down
8 changes: 4 additions & 4 deletions mon-pix/tests/integration/components/module/navbar_test.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module('Integration | Component | Module | Navbar', function (hooks) {
// then
assert.ok(screen);
assert.dom(screen.getByRole('navigation', { name: 'Étape 1 sur 3' })).exists();
assert.dom(screen.getByRole('progressbar', { name: 'Avancement du module' })).hasValue(0);
assert.dom('.progress-gauge__bar').hasValue(0);
});
});

Expand All @@ -27,7 +27,7 @@ module('Integration | Component | Module | Navbar', function (hooks) {
// then
assert.ok(screen);
assert.dom(screen.getByRole('navigation', { name: 'Étape 2 sur 3' })).exists();
assert.dom(screen.getByRole('progressbar', { name: 'Avancement du module' })).hasValue(50);
assert.dom('.progress-gauge__bar').hasValue(50);
});
});

Expand All @@ -39,7 +39,7 @@ module('Integration | Component | Module | Navbar', function (hooks) {
// then
assert.ok(screen);
assert.dom(screen.getByRole('navigation', { name: 'Étape 3 sur 3' })).exists();
assert.dom(screen.getByRole('progressbar', { name: 'Avancement du module' })).hasValue(100);
assert.dom('.progress-gauge__bar').hasValue(100);
});
});

Expand All @@ -51,7 +51,7 @@ module('Integration | Component | Module | Navbar', function (hooks) {
// then
assert.ok(screen);
assert.dom(screen.getByRole('navigation', { name: 'Étape 1 sur 1' })).exists();
assert.dom(screen.getByRole('progressbar', { name: 'Avancement du module' })).hasValue(100);
assert.dom('.progress-gauge__bar').hasValue(100);
});
});
});

0 comments on commit 472da35

Please sign in to comment.