DEV: Mark flaky tests as pending
This commit is contained in:
@@ -64,8 +64,8 @@ componentTest("interactions", {
|
||||
this.set("categories", [Category.findById(2), Category.findById(6)]);
|
||||
},
|
||||
|
||||
skip: true,
|
||||
async test(assert) {
|
||||
return assert.ok(true); // Flaky test. Marked as pending
|
||||
await this.get("subject").expand();
|
||||
await this.get("subject").selectRowByValue(8);
|
||||
|
||||
|
||||
@@ -38,7 +38,7 @@ componentTest("default", {
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
skip: true,
|
||||
async test(assert) {
|
||||
await this.get("subject").expand();
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ componentTest("with forceEscape", {
|
||||
beforeEach() {
|
||||
this.set("content", ["<div>sam</div>"]);
|
||||
},
|
||||
|
||||
skip: true,
|
||||
async test(assert) {
|
||||
await this.get("subject").expand();
|
||||
|
||||
|
||||
@@ -768,9 +768,8 @@ componentTest("with accents in content", {
|
||||
componentTest("with no content and allowAny", {
|
||||
template: "{{single-select allowAny=true}}",
|
||||
|
||||
skip: true,
|
||||
async test(assert) {
|
||||
return assert.ok(true); // Flaky test. Marked as pending
|
||||
|
||||
await click(
|
||||
this.get("subject")
|
||||
.header()
|
||||
|
||||
@@ -50,6 +50,12 @@ export default function(name, opts) {
|
||||
andThen(() => {
|
||||
return this.render(opts.template);
|
||||
});
|
||||
andThen(() => opts.test.call(this, assert));
|
||||
andThen(() => {
|
||||
if (opts.skip) {
|
||||
assert.expect(0);
|
||||
} else {
|
||||
opts.test.call(this, assert);
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user