Skip to content

Commit

Permalink
feat(mon-pix): improve css css to align components
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelleBonnemay committed Sep 20, 2024
1 parent ea912e4 commit b4c287d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
8 changes: 8 additions & 0 deletions mon-pix/app/components/authentication-layout/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,13 @@

.authentication-layout-footer {
margin-top: auto;

.footer-container-content__navigation {
margin-left: 0;
}

.footer-navigation__item{
margin: 0 var(--pix-spacing-3x) 0 0;
}
}

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { render } from '@1024pix/ember-testing-library';
import Service from '@ember/service';
import { setLocale } from 'ember-intl/test-support';
import { t } from 'ember-intl/test-support';
import AuthenticationLayout from 'mon-pix/components/authentication-layout';
import { module, test } from 'qunit';

Expand Down Expand Up @@ -28,25 +28,6 @@ module('Integration | Component | authentication-layout/index', function (hooks)
assert.ok(screen.getAllByRole('presentation')[1].hasAttribute('src', '/images/pix-logo.svg'));
assert.dom(screen.getByRole('contentinfo')).exists();
assert.dom(screen.getByRole('banner')).exists();
assert.dom(screen.queryByRole('button', { name: 'Sélectionnez une langue' })).exists();
});
test('it displays an authentication layout in Dutch when query parameter is nl', async function (assert) {
//given
class CurrentDomainServiceStub extends Service {
get isFranceDomain() {
return false;
}

getExtension() {
return 'org';
}
}
this.owner.register('service:currentDomain', CurrentDomainServiceStub);
setLocale('nl');
//when
const screen = await render(<template><AuthenticationLayout /></template>);

//then
assert.dom(screen.getByText('Helpcentrum')).exists();
assert.dom(screen.queryByRole('button', { name: t('pages.inscription.choose-language-aria-label') })).exists();
});
});

0 comments on commit b4c287d

Please sign in to comment.