Skip to content

Commit

Permalink
MLPAB-1952: Default manage organisation link to manage team members v…
Browse files Browse the repository at this point in the history
…iew (#1135)
  • Loading branch information
acsauk authored Mar 19, 2024
1 parent 6f93104 commit 6203d59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cypress/e2e/supporter/manage-team-members.cy.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
describe('Organisation details', () => {
it('shows invited and joined members', () => {
cy.visit('/fixtures/supporter?organisation=1&redirect=/manage-organisation/manage-team-members&invitedMembers=2&members=2&permission=admin');
cy.visit('/fixtures/supporter?organisation=1&redirect=/dashboard&invitedMembers=2&members=2&permission=admin');

cy.contains('a', 'Manage organisation').click()
cy.url().should('contain', '/manage-organisation/manage-team-members');
cy.checkA11yApp();

cy.checkA11yApp();
cy.contains("a", "Manage team members").click()
Expand Down
2 changes: 1 addition & 1 deletion web/template/layout/login-header.gohtml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
</li>
{{ if .App.IsAdmin }}
<li class="service-header__nav-list-item {{ if .App.IsManageOrganisation }}service-header__nav-list-item--active{{ end }}">
<a class="service-header__nav-list-item-link" href="{{ link .App global.Paths.Supporter.OrganisationDetails.Format }}">{{ tr .App "manageOrganisation" }}</a>
<a class="service-header__nav-list-item-link" href="{{ link .App global.Paths.Supporter.ManageTeamMembers.Format }}">{{ tr .App "manageOrganisation" }}</a>
</li>
{{ else }}
<li class="service-header__nav-list-item {{ if .App.IsManageOrganisation }}service-header__nav-list-item--active{{ end }}">
Expand Down

0 comments on commit 6203d59

Please sign in to comment.