fix: add auth middleware to profile page and update visual snapshots

- Add `middleware: 'auth'` to member/profile.vue (was missing)
- Harden loginAsAdmin helper to wait for networkidle after redirect so
  auth-init plugin and admin middleware finish before tests navigate
- Regenerate visual baselines to reflect updated profile page UI

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jennie Robinson Faber 2026-04-07 15:00:23 +01:00
parent fb25e72215
commit 4271ed0c6f
5 changed files with 12 additions and 3 deletions

View file

@ -325,6 +325,10 @@
</template>
<script setup>
definePageMeta({
middleware: 'auth',
});
const { memberData, checkMemberStatus } = useAuth();
const { openLoginModal } = useLoginModal();