From 35ffe76c3f0770c2ec3c79178f00870648e7fcad Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Tue, 29 Sep 2026 11:20:15 -0700 Subject: [PATCH 1/5] added Biography header to UserProfileBio --- app/components/user-profile-bio-details.gjs | 29 ++++++++++++--------- app/components/user-profile-bio-manager.gjs | 9 +++++-- app/styles/components/user-profile-bio.scss | 22 ++++++++++++---- translations/en-us.yaml | 1 + translations/es.yaml | 1 + translations/fr.yaml | 1 + 6 files changed, 44 insertions(+), 19 deletions(-) diff --git a/app/components/user-profile-bio-details.gjs b/app/components/user-profile-bio-details.gjs index 5d6b411115..277e783f7c 100644 --- a/app/components/user-profile-bio-details.gjs +++ b/app/components/user-profile-bio-details.gjs @@ -5,18 +5,23 @@ import FaIcon from '@fortawesome/ember-fontawesome/components/fa-icon'; import { faPenToSquare } from '@fortawesome/free-solid-svg-icons'; , ); + assert.strictEqual(component.title, 'Profile'); assert.strictEqual( component.school, `Primary School: ${schoolModel.title}`, diff --git a/tests/integration/components/user-profile-bio-manager-test.gjs b/tests/integration/components/user-profile-bio-manager-test.gjs index 35284ff5b9..e22a5e4572 100644 --- a/tests/integration/components/user-profile-bio-manager-test.gjs +++ b/tests/integration/components/user-profile-bio-manager-test.gjs @@ -57,6 +57,7 @@ module('Integration | Component | user profile bio manager', function (hooks) { , ); + assert.strictEqual(component.title, 'Profile'); assert.strictEqual( component.school, `Primary School: ${schoolModel.title}`, @@ -110,6 +111,7 @@ module('Integration | Component | user profile bio manager', function (hooks) { , ); + assert.strictEqual(component.title, 'Profile'); assert.strictEqual( component.school, `Primary School: ${schoolModel.title}`, diff --git a/tests/integration/components/user-profile-roles-test.gjs b/tests/integration/components/user-profile-roles-test.gjs index 214d68a2c5..aaead1d22d 100644 --- a/tests/integration/components/user-profile-roles-test.gjs +++ b/tests/integration/components/user-profile-roles-test.gjs @@ -28,6 +28,7 @@ module('Integration | Component | user profile roles', function (hooks) { this.set('user', userModel); await render(); + assert.strictEqual(component.title, 'Roles'); assert.strictEqual(component.student.value, 'Yes'); assert.strictEqual(component.formerStudent.value, 'No'); assert.strictEqual(component.enabled.value, 'Yes'); diff --git a/tests/pages/components/user-profile-bio-details.js b/tests/pages/components/user-profile-bio-details.js index ab84fe44d5..9fa50e458e 100644 --- a/tests/pages/components/user-profile-bio-details.js +++ b/tests/pages/components/user-profile-bio-details.js @@ -4,6 +4,7 @@ const definition = { scope: '[data-test-user-profile-bio-details]', manage: clickable('[data-test-manage]'), school: text('[data-test-school]'), + title: text('[data-test-title]'), firstName: { scope: '[data-test-firstname]', label: text('label'), diff --git a/tests/pages/components/user-profile-bio-manager.js b/tests/pages/components/user-profile-bio-manager.js index aa26d2cf14..d509376776 100644 --- a/tests/pages/components/user-profile-bio-manager.js +++ b/tests/pages/components/user-profile-bio-manager.js @@ -17,6 +17,7 @@ const definition = { syncWithDirectory: { scope: '[data-test-directory-sync]', }, + title: text('[data-test-title]'), school: text('[data-test-school]'), firstName: { scope: '[data-test-firstname]', diff --git a/tests/pages/components/user-profile-roles.js b/tests/pages/components/user-profile-roles.js index fcbf0414f0..da46dd8ce3 100644 --- a/tests/pages/components/user-profile-roles.js +++ b/tests/pages/components/user-profile-roles.js @@ -8,6 +8,7 @@ const definition = { manage: { scope: '[data-test-manage]', }, + title: text('[data-test-title]'), student: { scope: '[data-test-student]', label: text('label'),