DEV: skips/tweaks brittle tests (#9952)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import componentTest from "helpers/component-test";
|
||||
import { testSelectKitModule } from "helpers/select-kit-helper";
|
||||
import pretender from "helpers/create-pretender";
|
||||
|
||||
testSelectKitModule("user-chooser");
|
||||
|
||||
@@ -32,27 +31,3 @@ componentTest("can remove a username", {
|
||||
assert.equal(this.subject.header().name(), "martin");
|
||||
}
|
||||
});
|
||||
|
||||
componentTest("can add a username", {
|
||||
template: template(),
|
||||
|
||||
beforeEach() {
|
||||
this.set("value", ["bob", "martin"]);
|
||||
|
||||
const response = object => {
|
||||
return [200, { "Content-Type": "application/json" }, object];
|
||||
};
|
||||
|
||||
pretender.get("/u/search/users", () => {
|
||||
return response({ users: [{ username: "maja", name: "Maja" }] });
|
||||
});
|
||||
},
|
||||
|
||||
async test(assert) {
|
||||
await this.subject.expand();
|
||||
await this.subject.fillInFilter("maja");
|
||||
await this.subject.keyboard("enter");
|
||||
|
||||
assert.equal(this.subject.header().name(), "bob,martin,maja");
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user