Skip to content

Commit

Permalink
[BUMP] Update dependency @1024pix/pix-ui to v51 (certif)
Browse files Browse the repository at this point in the history
  • Loading branch information
pix-service-auto-merge authored Dec 17, 2024
2 parents 9624811 + 62973ad commit 022f259
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
5 changes: 3 additions & 2 deletions certif/app/components/layout/banners.gjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import PixBannerAlert from '@1024pix/pix-ui/components/pix-banner-alert';
import PixNotificationAlert from '@1024pix/pix-ui/components/pix-notification-alert';
import { action } from '@ember/object';
import { service } from '@ember/service';
import Component from '@glimmer/component';
Expand Down Expand Up @@ -36,9 +37,9 @@ export default class Banners extends Component {

<template>
{{#if this.shouldDisplaySCOInformationBanner}}
<PixBannerAlert @canCloseBanner='true' class='banners'>
<PixNotificationAlert @type='information' @withIcon={{true}} class='banners'>
{{t 'pages.sco.banner.information' htmlSafe=true}}
</PixBannerAlert>
</PixNotificationAlert>
{{/if}}

{{#if this.shouldDisplayLocaleNotSupportedBanner}}
Expand Down
8 changes: 4 additions & 4 deletions certif/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion certif/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@1024pix/ember-api-actions": "^1.1.0",
"@1024pix/ember-testing-library": "^3.0.6",
"@1024pix/eslint-config": "^1.3.8",
"@1024pix/pix-ui": "^49.2.1",
"@1024pix/pix-ui": "^51.1.0",
"@1024pix/stylelint-config": "^5.1.24",
"@babel/eslint-parser": "^7.22.15",
"@babel/plugin-proposal-decorators": "^7.22.15",
Expand Down
20 changes: 18 additions & 2 deletions certif/tests/integration/components/layout/banners_test.gjs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,15 @@ module('Integration | Component | Layout | Banners', function (hooks) {
const screen = await render(<template><Banners /></template>);

// then
assert.dom(screen.queryByRole('alert')).exists();
assert
.dom(
screen.getByText(
(content) =>
content.startsWith('La Certification Pix se déroulera du 7 novembre 2024 au 7 mars 2025 ') &&
content.endsWith('Collèges : du 17 mars au 13 juin 2025.'),
),
)
.exists();
});
});

Expand Down Expand Up @@ -185,7 +193,15 @@ module('Integration | Component | Layout | Banners', function (hooks) {
const screen = await render(<template><Banners /></template>);

// then
assert.dom(screen.queryByRole('alert')).doesNotExist();
assert
.dom(
screen.queryByText(
(content) =>
content.startsWith('La Certification Pix se déroulera du 7 novembre 2024 au 7 mars 2025 ') &&
content.endsWith('Collèges : du 17 mars au 13 juin 2025.'),
),
)
.doesNotExist();
});
});
});
Expand Down

0 comments on commit 022f259

Please sign in to comment.