Skip to content

Commit

Permalink
Set locale in new-people-skills-show-test
Browse files Browse the repository at this point in the history
  • Loading branch information
lkleisa committed Mar 22, 2023
1 parent 49a0e1e commit 32a1cdc
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { setupRenderingTest } from "ember-qunit";
import { render } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import Service from "@ember/service";
import { setupIntl } from "ember-intl/test-support";
import { setLocale, setupIntl } from "ember-intl/test-support";

const storeStub = Service.extend({
createRecord(type, options) {
Expand Down Expand Up @@ -42,6 +42,8 @@ module("Integration | Component | new-people-skills-show", function(hooks) {
setupIntl(hooks);

test("it renders", async function(assert) {
setLocale("de");

this.owner.unregister("service:store");
this.owner.unregister("service:ajax");
this.owner.register("service:store", storeStub);
Expand All @@ -68,7 +70,7 @@ module("Integration | Component | new-people-skills-show", function(hooks) {

assert
.dom(".col-md-11", document)
.includesText("t:new-people-skills-show.newSkills:()");
.includesText("Neue Skills zur Bewertung");
assert.dom(".people-skill-skillname", document).includesText("Rails");
assert
.dom(".member-skillset-level-title", document)
Expand All @@ -84,8 +86,6 @@ module("Integration | Component | new-people-skills-show", function(hooks) {
document.querySelectorAll(".description.ml-2.mb-0")[1].innerHTML,
"Kernkompetenz"
);
assert
.dom(".edit-buttons", document)
.includesText("new-people-skills-show.dontRate");
assert.dom(".edit-buttons", document).includesText("Nicht bewerten");
});
});

0 comments on commit 32a1cdc

Please sign in to comment.