-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Page title and description placeholders and question adorner texts ar… (
#6444) * Page title and description placeholders and question adorner texts are not updated when changing a creator.locale at runtime fix #6441 * Fix functional test
- Loading branch information
1 parent
d62b398
commit 795a7f2
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { url, setJSON } from "../helper"; | ||
import { ClientFunction, Selector } from "testcafe"; | ||
const title = "Localization UI"; | ||
|
||
const changeLocale = ClientFunction(() => { | ||
window["creator"].locale = "de"; | ||
}); | ||
|
||
fixture(title) | ||
.page(url) | ||
.beforeEach(async (t) => { | ||
await t.maximizeWindow(); | ||
}); | ||
|
||
test("Change Creator.locale property", async (t) => { | ||
await setJSON({ elements: [{ type: "checkbox", name: "question1" }] }); | ||
await t.click(Selector("[data-name='question1']")); | ||
await changeLocale(); | ||
await t.expect(Selector(".svc-survey-element-toolbar-item__title--with-icon").withText("Auswahl").exists).ok(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters