@@ -11,36 +11,37 @@ import { expect, test } from "../../element-web-test";
1111 * Tests for branding configuration
1212 **/
1313
14- test . describe ( ' Test without branding config' , ( ) => {
14+ test . describe ( " Test without branding config" , ( ) => {
1515 test ( "Shows standard branding when showing the home page" , async ( { pageWithCredentials : page } ) => {
1616 await page . goto ( "/" ) ;
1717 await page . waitForSelector ( ".mx_MatrixChat" , { timeout : 30000 } ) ;
18- expect ( page . title ( ) ) . toEqual ( ' Element *' ) ;
18+ expect ( page . title ( ) ) . toEqual ( " Element *" ) ;
1919 } ) ;
2020 test ( "Shows standard branding when showing a room" , async ( { app, pageWithCredentials : page } ) => {
2121 await app . client . createRoom ( { name : "Test Room" } ) ;
2222 await app . viewRoomByName ( "Test Room" ) ;
23- expect ( page . title ( ) ) . toEqual ( ' Element * | Test Room' ) ;
23+ expect ( page . title ( ) ) . toEqual ( " Element * | Test Room" ) ;
2424 } ) ;
2525} ) ;
2626
27- test . describe ( 'Test with custom branding' , ( ) => {
28- test . use ( { config : {
29- brand : 'TestBrand' ,
30- branding : {
31- title_template : 'TestingApp $ignoredParameter $brand $status $ignoredParameter' ,
32- title_template_in_room : 'TestingApp $brand $status $room_name $ignoredParameter'
33- }
34- } } ) ;
27+ test . describe ( "Test with custom branding" , ( ) => {
28+ test . use ( {
29+ config : {
30+ brand : "TestBrand" ,
31+ branding : {
32+ title_template : "TestingApp $ignoredParameter $brand $status $ignoredParameter" ,
33+ title_template_in_room : "TestingApp $brand $status $room_name $ignoredParameter" ,
34+ } ,
35+ } ,
36+ } ) ;
3537 test ( "Shows custom branding when showing the home page" , async ( { pageWithCredentials : page } ) => {
3638 await page . goto ( "/" ) ;
3739 await page . waitForSelector ( ".mx_MatrixChat" , { timeout : 30000 } ) ;
38- expect ( page . title ( ) ) . toEqual ( ' TestingApp TestBrand * $ignoredParameter' ) ;
40+ expect ( page . title ( ) ) . toEqual ( " TestingApp TestBrand * $ignoredParameter" ) ;
3941 } ) ;
4042 test ( "Shows custom branding when showing a room" , async ( { app, pageWithCredentials : page } ) => {
4143 await app . client . createRoom ( { name : "Test Room" } ) ;
4244 await app . viewRoomByName ( "Test Room" ) ;
43- expect ( page . title ( ) ) . toEqual ( ' TestingApp TestBrand * Test Room $ignoredParameter' ) ;
45+ expect ( page . title ( ) ) . toEqual ( " TestingApp TestBrand * Test Room $ignoredParameter" ) ;
4446 } ) ;
4547} ) ;
46-
0 commit comments