diff --git a/high-level-tests/e2e/cypress/support/step_definitions/login-logout.js b/high-level-tests/e2e/cypress/support/step_definitions/login-logout.js index 3c2d80d987c..0fd01e3e7fe 100644 --- a/high-level-tests/e2e/cypress/support/step_definitions/login-logout.js +++ b/high-level-tests/e2e/cypress/support/step_definitions/login-logout.js @@ -85,7 +85,6 @@ When(`je me déconnecte`, () => { }); When(`je me déconnecte de Pix Orga`, () => { - cy.get('[aria-label="Ouvrir le menu utilisateur"]').click(); cy.contains("Se déconnecter").click(); }); diff --git a/orga/app/components/layout/organization-places-or-credit-info.gjs b/orga/app/components/layout/organization-places-or-credit-info.gjs index 7907c7c9362..f554778f3d9 100644 --- a/orga/app/components/layout/organization-places-or-credit-info.gjs +++ b/orga/app/components/layout/organization-places-or-credit-info.gjs @@ -1,6 +1,5 @@ import PixIcon from '@1024pix/pix-ui/components/pix-icon'; import PixTooltip from '@1024pix/pix-ui/components/pix-tooltip'; -import { LinkTo } from '@ember/routing'; import { service } from '@ember/service'; import Component from '@glimmer/component'; import { t } from 'ember-intl'; @@ -10,12 +9,14 @@ export default class OrganizationPlacesOrCreditInfo extends Component { @service currentUser; get canShowCredit() { - return this.currentUser.isAdminInOrganization && this.currentUser.organization.credit > 0; + const canShow = this.currentUser.isAdminInOrganization && this.currentUser.organization.credit > 0; + this.args.onCanShowCredit?.(canShow); + return canShow; }