From da21cbfc1b7f6206758ceb67006f2bc3a5a75175 Mon Sep 17 00:00:00 2001 From: AndreiaPena Date: Tue, 3 Dec 2024 17:57:50 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20certif:=20do=20not=20allow=20to=20c?= =?UTF-8?q?lose=20the=20communication=20banner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- certif/app/components/communication-banner.hbs | 2 +- .../components/communication-banner-test.js | 16 ---------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/certif/app/components/communication-banner.hbs b/certif/app/components/communication-banner.hbs index f44f95c28ad..785cbe977c5 100644 --- a/certif/app/components/communication-banner.hbs +++ b/certif/app/components/communication-banner.hbs @@ -1,5 +1,5 @@ {{#if this.isEnabled}} - + {{text-with-multiple-lang this.bannerContent}} {{/if}} \ No newline at end of file diff --git a/certif/tests/integration/components/communication-banner-test.js b/certif/tests/integration/components/communication-banner-test.js index d0b6e56b522..40df264de5b 100644 --- a/certif/tests/integration/components/communication-banner-test.js +++ b/certif/tests/integration/components/communication-banner-test.js @@ -1,5 +1,4 @@ import { render } from '@1024pix/ember-testing-library'; -import { click } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import ENV from 'pix-certif/config/environment'; import { module, test } from 'qunit'; @@ -39,20 +38,5 @@ module('Integration | Component | communication-banner', function (hooks) { // then assert.dom(screen.getByText('information banner text ...')).exists(); - assert.dom(screen.getByRole('button', { name: 'Fermer' })).exists(); - }); - - test('should close the information banner on click on close button', async function (assert) { - // given - ENV.APP.BANNER.CONTENT = 'information banner text ...'; - ENV.APP.BANNER.TYPE = 'information'; - const screen = await render(hbs``); - - // when - await click(screen.getByRole('button', { name: 'Fermer' })); - - // then - assert.dom(screen.queryByText('information banner text ...')).doesNotExist(); - assert.dom(screen.queryByRole('button', { name: 'Fermer' })).doesNotExist(); }); });