[MM-63015] Add more descriptive page titles to login/create account/password reset pages (#30857)

* [MM-63015] Add more descriptive page titles to login/create account/password reset pages

* PR feedback

* Fix e2e

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
Devin Binnie
2025-05-08 10:48:31 -04:00
коммит произвёл GitHub
родитель 0e806bf8e8
Коммит c33dbe8d37
9 изменённых файлов: 62 добавлений и 81 удалений

Просмотреть файл

@@ -22,7 +22,7 @@ describe('Customization', () => {
cy.visit('/login');
// * Verify that the head tag contains default title and without og:description
cy.get('head').find('title').should('have.text', defaultTitle);
cy.get('head').find('title').should('have.text', `${defaultDescription} - ${defaultTitle}`);
cy.get('head').get('meta[property="og:description"]').should('not.exist');
// * Verify that the header contains default logo/image
@@ -40,7 +40,7 @@ describe('Customization', () => {
cy.visit('');
// * Verify that the head tag contains custom title and description
cy.get('head').find('title').should('have.text', customTitle);
cy.get('head').find('title').should('have.text', `${defaultDescription} - ${customTitle}`);
cy.get('head').get('meta[property="og:description"]').should('have.attr', 'content', customDescription);
// * Verify that the header contains custom title