11import { test , expect } from "./fixtures/auth" ;
22
3- test . describe ( "App Customisation " , ( ) => {
3+ test . describe ( "App Customization " , ( ) => {
44 test ( "admin can update general branding" , async ( { adminPage } ) => {
5- await adminPage . goto ( "/en/admin/customise " ) ;
5+ await adminPage . goto ( "/en/admin/customize " ) ;
66
77 // Update app name and accent color
88 const newAppName = "Test Registry " + Math . random ( ) . toString ( 36 ) . slice ( 7 ) ;
@@ -11,7 +11,7 @@ test.describe("App Customisation", () => {
1111 await adminPage . fill ( 'input[name="appNameEn"]' , newAppName ) ;
1212 await adminPage . fill ( 'input[name="accentColor"]' , newAccentColor ) ;
1313
14- await adminPage . getByTestId ( "save-customisations " ) . click ( ) ;
14+ await adminPage . getByTestId ( "save-customizations " ) . click ( ) ;
1515
1616 // Check for success toast - try both languages just in case, or use a more robust locator
1717 // We expect "Settings updated successfully" (EN) or "Asetukset tallennettu onnistuneesti" (FI)
@@ -38,7 +38,7 @@ test.describe("App Customisation", () => {
3838 } ) ;
3939
4040 test ( "admin can update organization details" , async ( { adminPage } ) => {
41- await adminPage . goto ( "/en/admin/customise " ) ;
41+ await adminPage . goto ( "/en/admin/customize " ) ;
4242
4343 const newOrgName = "Test Organization " + Math . random ( ) . toString ( 36 ) . slice ( 7 ) ;
4444 const newOrgShortName = "Test Short " + Math . random ( ) . toString ( 36 ) . slice ( 7 ) ;
@@ -50,7 +50,7 @@ test.describe("App Customisation", () => {
5050 await adminPage . fill ( 'input[name="businessId"]' , newBusinessId ) ;
5151 await adminPage . fill ( 'input[name="overseerContact"]' , newContact ) ;
5252
53- await adminPage . getByTestId ( "save-customisations " ) . click ( ) ;
53+ await adminPage . getByTestId ( "save-customizations " ) . click ( ) ;
5454 await expect (
5555 adminPage . locator ( "text=/Settings updated successfully|Asetukset tallennettu onnistuneesti/" ) ,
5656 ) . toBeVisible ( ) ;
@@ -63,16 +63,16 @@ test.describe("App Customisation", () => {
6363 await expect ( adminPage . locator ( "footer" ) ) . toContainText ( newContact ) ;
6464 } ) ;
6565
66- test ( "readonly admin cannot update customisations " , async ( { readonlyAdminPage } ) => {
67- await readonlyAdminPage . goto ( "/en/admin/customise " ) ;
66+ test ( "readonly admin cannot update customizations " , async ( { readonlyAdminPage } ) => {
67+ await readonlyAdminPage . goto ( "/en/admin/customize " ) ;
6868
6969 // Check if a warning banner is present
7070 await expect (
7171 readonlyAdminPage . locator ( "text=/You have read-only access|Sinulla on vain lukuoikeus/" ) ,
7272 ) . toBeVisible ( ) ;
7373
7474 // Try to submit anyway (if button is not disabled)
75- const saveButton = readonlyAdminPage . getByTestId ( "save-customisations " ) ;
75+ const saveButton = readonlyAdminPage . getByTestId ( "save-customizations " ) ;
7676
7777 const isDisabled = await saveButton . isDisabled ( ) ;
7878
0 commit comments