From a3858d3d6238ef05a21fb29247bfcfdad5697f83 Mon Sep 17 00:00:00 2001 From: Garrick Cheung Date: Sat, 22 Feb 2020 14:43:31 -0800 Subject: [PATCH] [BUGFIX beta] Adding test for #18211 --- .../glimmer/tests/integration/input-test.js | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/packages/@ember/-internals/glimmer/tests/integration/input-test.js b/packages/@ember/-internals/glimmer/tests/integration/input-test.js index 261683d0bfd..391483727b8 100644 --- a/packages/@ember/-internals/glimmer/tests/integration/input-test.js +++ b/packages/@ember/-internals/glimmer/tests/integration/input-test.js @@ -201,6 +201,26 @@ moduleFor( this.assertValue('hola', 'Value is used'); } + ['@test GH18211 input checked attribute, without a value, works with the action helper']() { + this.render(``, { actions: { someAction() {} } }); + this.assertPropertyHasValue('checked', true); + } + + ['@test GH18211 input checked attribute, with a value, works with the action helper']() { + this.render(``, { actions: { someAction() {} } }); + this.assertPropertyHasValue('checked', true); + } + + ['@test GH18211 input checked attribute, without a value, works with attributes with values']() { + this.render(``, { actions: { someAction() {} } }); + this.assertPropertyHasValue('checked', true); + } + + ['@test GH18211 input checked attribute, without a value, works with event attributes']() { + this.render(``, { actions: { someAction() {} } }); + this.assertPropertyHasValue('checked', true); + } + // private helpers and assertions setDOMValue(value) { this.inputElement().value = value;