diff --git a/packages/form-builder/tests/integration/components/cfb-form-editor/general-test.js b/packages/form-builder/tests/integration/components/cfb-form-editor/general-test.js index 2ba136826..e0a30e0fc 100644 --- a/packages/form-builder/tests/integration/components/cfb-form-editor/general-test.js +++ b/packages/form-builder/tests/integration/components/cfb-form-editor/general-test.js @@ -1,7 +1,7 @@ import { render, click, fillIn, blur } from "@ember/test-helpers"; import { hbs } from "ember-cli-htmlbars"; import { setupMirage } from "ember-cli-mirage/test-support"; -import { setupIntl } from "ember-intl/test-support"; +import { setupIntl, t } from "ember-intl/test-support"; import { module, test } from "qunit"; import { setupRenderingTest } from "dummy/tests/helpers"; @@ -10,7 +10,7 @@ import graphqlError from "dummy/tests/helpers/graphql-error"; module("Integration | Component | cfb-form-editor/general", function (hooks) { setupRenderingTest(hooks); setupMirage(hooks); - setupIntl(hooks); + setupIntl(hooks, "en"); test("it renders", async function (assert) { assert.expect(4); @@ -181,7 +181,7 @@ module("Integration | Component | cfb-form-editor/general", function (hooks) { assert .dom("p") - .hasText('t:caluma.form-builder.form.not-found:("slug":"test-slug")'); + .hasText(t("caluma.form-builder.form.not-found", { slug: "test-slug" })); }); test("it validates the slug", async function (assert) { @@ -197,7 +197,7 @@ module("Integration | Component | cfb-form-editor/general", function (hooks) { assert .dom("small.uk-text-danger") - .hasText("t:caluma.form-builder.validations.form.slug:()"); + .hasText(t("caluma.form-builder.validations.form.slug")); await fillIn("input[name=slug]", "valid-slug"); @@ -207,6 +207,6 @@ module("Integration | Component | cfb-form-editor/general", function (hooks) { assert .dom("small.uk-text-danger") - .hasText("t:caluma.form-builder.validations.form.slug:()"); + .hasText(t("caluma.form-builder.validations.form.slug")); }); });