From 120a5b41cdb11ba4a2b4a212dc16a30894044ae3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marie-H=C3=A9l=C3=A8ne?= Date: Thu, 5 Oct 2023 16:14:36 +0200 Subject: [PATCH] tech(orga): use render from @1024pix in other components integration tests --- .../integration/components/auth/join-request-form_test.js | 4 ++-- .../tests/integration/components/banner/communication_test.js | 2 +- .../integration/components/dropdown/icon-trigger_test.js | 3 +-- orga/tests/integration/components/tables/header-sort_test.js | 3 ++- orga/tests/integration/components/team/invite-form_test.js | 3 +-- orga/tests/integration/components/team/members-list_test.js | 2 +- 6 files changed, 8 insertions(+), 9 deletions(-) diff --git a/orga/tests/integration/components/auth/join-request-form_test.js b/orga/tests/integration/components/auth/join-request-form_test.js index d122110308c..c77ee7b6bf2 100644 --- a/orga/tests/integration/components/auth/join-request-form_test.js +++ b/orga/tests/integration/components/auth/join-request-form_test.js @@ -1,7 +1,7 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; -import { render, triggerEvent } from '@ember/test-helpers'; -import { fillByLabel } from '@1024pix/ember-testing-library'; +import { triggerEvent } from '@ember/test-helpers'; +import { render, fillByLabel } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | Auth::JoinRequestForm', function (hooks) { diff --git a/orga/tests/integration/components/banner/communication_test.js b/orga/tests/integration/components/banner/communication_test.js index e52b4a13fce..573671bf7a6 100644 --- a/orga/tests/integration/components/banner/communication_test.js +++ b/orga/tests/integration/components/banner/communication_test.js @@ -1,6 +1,6 @@ import { module, test } from 'qunit'; import setupIntlRenderingTest from '../../../helpers/setup-intl-rendering'; -import { render } from '@ember/test-helpers'; +import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; import ENV from 'pix-orga/config/environment'; diff --git a/orga/tests/integration/components/dropdown/icon-trigger_test.js b/orga/tests/integration/components/dropdown/icon-trigger_test.js index 3b4bd822a86..63151216945 100644 --- a/orga/tests/integration/components/dropdown/icon-trigger_test.js +++ b/orga/tests/integration/components/dropdown/icon-trigger_test.js @@ -1,7 +1,6 @@ import { module, test } from 'qunit'; -import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; -import { clickByName } from '@1024pix/ember-testing-library'; +import { clickByName, render } from '@1024pix/ember-testing-library'; import setupIntlRenderingTest from '../../../helpers/setup-intl-rendering'; module('Integration | Component | Dropdown | icon-trigger', function (hooks) { diff --git a/orga/tests/integration/components/tables/header-sort_test.js b/orga/tests/integration/components/tables/header-sort_test.js index ca15df0d28d..aa53733480d 100644 --- a/orga/tests/integration/components/tables/header-sort_test.js +++ b/orga/tests/integration/components/tables/header-sort_test.js @@ -1,7 +1,8 @@ import { module, test } from 'qunit'; import sinon from 'sinon'; import { setupRenderingTest } from 'ember-qunit'; -import { click, render } from '@ember/test-helpers'; +import { click } from '@ember/test-helpers'; +import { render } from '@1024pix/ember-testing-library'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | Tables | header-sort', function (hooks) { diff --git a/orga/tests/integration/components/team/invite-form_test.js b/orga/tests/integration/components/team/invite-form_test.js index 8631f9407b8..334d0b74cd8 100644 --- a/orga/tests/integration/components/team/invite-form_test.js +++ b/orga/tests/integration/components/team/invite-form_test.js @@ -1,9 +1,8 @@ import { module, test } from 'qunit'; -import { render } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; import sinon from 'sinon'; -import { fillByLabel } from '@1024pix/ember-testing-library'; +import { fillByLabel, render } from '@1024pix/ember-testing-library'; import setupIntlRenderingTest from '../../../helpers/setup-intl-rendering'; module('Integration | Component | Team::InviteForm', function (hooks) { diff --git a/orga/tests/integration/components/team/members-list_test.js b/orga/tests/integration/components/team/members-list_test.js index 1e6e976f6bc..d58147a8ad0 100644 --- a/orga/tests/integration/components/team/members-list_test.js +++ b/orga/tests/integration/components/team/members-list_test.js @@ -1,4 +1,4 @@ -import { render } from '@ember/test-helpers'; +import { render } from '@1024pix/ember-testing-library'; import Service from '@ember/service'; import { hbs } from 'ember-cli-htmlbars'; import { module, test } from 'qunit';