Re-enable localization Cypress tests (#935)

This commit is contained in:
Jon Koops 2021-08-04 12:50:25 +02:00 committed by GitHub
parent 67a36b1e0f
commit b99c57d43b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 7 deletions

View file

@ -87,7 +87,7 @@ describe("Realm settings", () => {
return this;
};
/*const addBundle = () => {
const addBundle = () => {
const localizationUrl = `/auth/admin/realms/${realmName}/localization/en`;
cy.intercept(localizationUrl).as("localizationFetch");
@ -99,7 +99,7 @@ describe("Realm settings", () => {
cy.wait(["@localizationFetch"]);
return this;
};*/
};
it("Go to general tab", function () {
sidebarPage.goToRealmSettings();
@ -264,7 +264,7 @@ describe("Realm settings", () => {
realmSettingsPage.testSelectFilter();
});
/* it("add locale", () => {
it("add locale", () => {
sidebarPage.goToRealmSettings();
cy.getId("rs-localization-tab").click();
@ -274,7 +274,7 @@ describe("Realm settings", () => {
masthead.checkNotificationMessage(
"Success! The localization text has been created."
);
});*/
});
it("Realm header settings", () => {
sidebarPage.goToRealmSettings();

View file

@ -24,7 +24,7 @@ import { ViewHeader } from "../components/view-header/ViewHeader";
import { useAdminClient, useFetch } from "../context/auth/AdminClient";
import { useRealm } from "../context/realm-context/RealmContext";
import { useServerInfo } from "../context/server-info/ServerInfoProvider";
//import { LocalizationTab } from "./LocalizationTab";
import { LocalizationTab } from "./LocalizationTab";
import { useWhoAmI } from "../context/whoami/WhoAmI";
import { toUpperCase } from "../util";
import { RealmSettingsEmailTab } from "./EmailTab";
@ -305,7 +305,7 @@ export const RealmSettingsSection = () => {
<EventsTab />
</Tab>
{/* <Tab
<Tab
id="localization"
eventKey="localization"
data-testid="rs-localization-tab"
@ -320,7 +320,7 @@ export const RealmSettingsSection = () => {
realm={realm}
/>
)}
</Tab> */}
</Tab>
<Tab
id="securityDefences"
eventKey="securityDefences"