Skip to content

A platform for community discussion. Free, open, simple.

DEV: removes brittle test (#9977)

Joffrey JAFFEUXae52f5eaf549
diff --git a/test/javascripts/components/select-kit/single-select-test.js b/test/javascripts/components/select-kit/single-select-test.js
index 022f94eedd4..43781679e5b 100644
--- a/test/javascripts/components/select-kit/single-select-test.js
+++ b/test/javascripts/components/select-kit/single-select-test.js
@@ -259,44 +259,6 @@ componentTest("prevents propagating click event on header", {
}
});
-componentTest("focusAfterOnChange", {
- template:
- "{{d-button class='focus-me'}}{{single-select options=(hash focusAfterOnChange=focusAfterOnChange) value=value content=content onChange=onChange}}",
-
- beforeEach() {
- this.setProperties({
- onChange: () => {
- find(".focus-me").focus();
- this.set("value", "foo");
- },
- content: DEFAULT_CONTENT,
- value: DEFAULT_VALUE
- });
- },
-
- async test(assert) {
- this.set("focusAfterOnChange", true);
-
- await this.subject.expand();
- await this.subject.selectRowByIndex(0);
-
- assert.ok(
- document.activeElement.classList.contains("single-select-header"),
- "it selects the header"
- );
-
- this.set("focusAfterOnChange", false);
-
- await this.subject.expand();
- await this.subject.selectRowByIndex(0);
-
- assert.notOk(
- document.activeElement.classList.contains("single-select-header"),
- "it doesn’t select the header"
- );
- }
-});
-
componentTest("labelProperty", {
template: '{{single-select labelProperty="foo" value=value content=content}}',