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

View file

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