Make base theme hidden for admin and account UIs. (#22672)

* Make base theme hidden for admin and account UIs.

* Fix test.
This commit is contained in:
Stan Silvert 2023-08-24 15:49:05 -04:00 committed by GitHub
parent de448920fc
commit 65d9099e86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 19 deletions

View file

@ -126,7 +126,6 @@ describe("Realm settings tabs tests", () => {
realmSettingsPage.selectLoginThemeType("keycloak"); realmSettingsPage.selectLoginThemeType("keycloak");
realmSettingsPage.selectAccountThemeType("keycloak"); realmSettingsPage.selectAccountThemeType("keycloak");
realmSettingsPage.selectAdminThemeType("base");
realmSettingsPage.selectEmailThemeType("base"); realmSettingsPage.selectEmailThemeType("base");
realmSettingsPage.saveThemes(); realmSettingsPage.saveThemes();

View file

@ -120,7 +120,9 @@ export const RealmSettingsThemesTab = ({
placeholderText="Select a theme" placeholderText="Select a theme"
data-testid="select-account-theme" data-testid="select-account-theme"
> >
{themeTypes.account.map((theme, idx) => ( {themeTypes.account
.filter((theme) => theme.name !== "base")
.map((theme, idx) => (
<SelectOption <SelectOption
selected={theme.name === field.value} selected={theme.name === field.value}
key={`account-theme-${idx}`} key={`account-theme-${idx}`}
@ -162,7 +164,9 @@ export const RealmSettingsThemesTab = ({
placeholderText="Select a theme" placeholderText="Select a theme"
data-testid="select-admin-theme" data-testid="select-admin-theme"
> >
{themeTypes.admin.map((theme, idx) => ( {themeTypes.admin
.filter((theme) => theme.name !== "base")
.map((theme, idx) => (
<SelectOption <SelectOption
selected={theme.name === field.value} selected={theme.name === field.value}
key={`admin-theme-${idx}`} key={`admin-theme-${idx}`}