From a0e01a2af0f1812e0ec318f3a7f36dd7a4cf63e9 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Thu, 7 May 2020 17:54:12 -0400 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Remove=20overzealous?= =?UTF-8?q?=20use=20of=20findAll=20in=20group=20test?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/rose/form/radio/group-test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/rose/tests/integration/components/rose/form/radio/group-test.js b/addons/rose/tests/integration/components/rose/form/radio/group-test.js index 35635bdb1..56452c7c7 100644 --- a/addons/rose/tests/integration/components/rose/form/radio/group-test.js +++ b/addons/rose/tests/integration/components/rose/form/radio/group-test.js @@ -1,6 +1,6 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; -import { render, click, findAll } from '@ember/test-helpers'; +import { render, click, find, findAll } from '@ember/test-helpers'; import hbs from 'htmlbars-inline-precompile'; module('Integration | Component | rose/form/radio/group', function (hooks) { @@ -43,12 +43,12 @@ module('Integration | Component | rose/form/radio/group', function (hooks) { `); - assert.equal(findAll('#bird-1')[0].checked, false); - assert.equal(findAll('#bird-2')[0].checked, true); + assert.equal(find('#bird-1').checked, false); + assert.equal(find('#bird-2').checked, true); - await click(findAll('#bird-1')[0]); + await click(find('#bird-1')); - assert.equal(findAll('#bird-1')[0].checked, true); - assert.equal(findAll('#bird-2')[0].checked, false); + assert.equal(find('#bird-1').checked, true); + assert.equal(find('#bird-2').checked, false); }); });