diff --git a/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js b/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js index 0140ea71ae8..1a04a560cbd 100644 --- a/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js +++ b/blueprints-js/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.js @@ -12,7 +12,7 @@ module('<%= friendlyTestDescription %>', function (hooks) { await render(hbs`<%= selfCloseComponent(componentName) %>`); - assert.dom(this.element).hasText(''); + assert.dom().hasText(''); // Template block usage: await render(hbs` @@ -21,7 +21,7 @@ module('<%= friendlyTestDescription %>', function (hooks) { <%= closeComponent(componentName) %> `); - assert.dom(this.element).hasText('template block text'); + assert.dom().hasText('template block text'); }); });<% } else if (testType === 'unit') { %>import { module, test } from 'qunit'; import { setupTest } from '<%= modulePrefix %>/tests/helpers'; diff --git a/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js b/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js index a04bbbf5077..782222ddad6 100644 --- a/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js +++ b/blueprints-js/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.js @@ -12,6 +12,6 @@ module('<%= friendlyTestName %>', function (hooks) { await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); - assert.dom(this.element).hasText('1234'); + assert.dom().hasText('1234'); }); }); diff --git a/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts b/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts index d2d4e87d1a4..339cdad8e41 100644 --- a/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts +++ b/blueprints/component-test/qunit-rfc-232-files/__root__/__testType__/__path__/__test__.ts @@ -12,7 +12,7 @@ module('<%= friendlyTestDescription %>', function (hooks) { await render(hbs`<%= selfCloseComponent(componentName) %>`); - assert.dom(this.element).hasText(''); + assert.dom().hasText(''); // Template block usage: await render(hbs` @@ -21,7 +21,7 @@ module('<%= friendlyTestDescription %>', function (hooks) { <%= closeComponent(componentName) %> `); - assert.dom(this.element).hasText('template block text'); + assert.dom().hasText('template block text'); }); });<% } else if (testType === 'unit') { %>import { module, test } from 'qunit'; import { setupTest } from '<%= modulePrefix %>/tests/helpers'; diff --git a/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.ts b/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.ts index a04bbbf5077..782222ddad6 100644 --- a/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.ts +++ b/blueprints/helper-test/qunit-rfc-232-files/__root__/__testType__/helpers/__name__-test.ts @@ -12,6 +12,6 @@ module('<%= friendlyTestName %>', function (hooks) { await render(hbs`{{<%= dasherizedModuleName %> this.inputValue}}`); - assert.dom(this.element).hasText('1234'); + assert.dom().hasText('1234'); }); }); diff --git a/node-tests/fixtures/component-test/rfc232-addon.js b/node-tests/fixtures/component-test/rfc232-addon.js index 0c22851c05a..ecb40dcf7bc 100644 --- a/node-tests/fixtures/component-test/rfc232-addon.js +++ b/node-tests/fixtures/component-test/rfc232-addon.js @@ -12,7 +12,7 @@ module('Integration | Component | foo', function (hooks) { await render(hbs``); - assert.dom(this.element).hasText(''); + assert.dom().hasText(''); // Template block usage: await render(hbs` @@ -21,6 +21,6 @@ module('Integration | Component | foo', function (hooks) { `); - assert.dom(this.element).hasText('template block text'); + assert.dom().hasText('template block text'); }); }); diff --git a/node-tests/fixtures/component-test/rfc232.js b/node-tests/fixtures/component-test/rfc232.js index 93374f79530..9dc61f120d6 100644 --- a/node-tests/fixtures/component-test/rfc232.js +++ b/node-tests/fixtures/component-test/rfc232.js @@ -12,7 +12,7 @@ module('Integration | Component | x-foo', function (hooks) { await render(hbs``); - assert.dom(this.element).hasText(''); + assert.dom().hasText(''); // Template block usage: await render(hbs` @@ -21,6 +21,6 @@ module('Integration | Component | x-foo', function (hooks) { `); - assert.dom(this.element).hasText('template block text'); + assert.dom().hasText('template block text'); }); }); diff --git a/node-tests/fixtures/helper-test/rfc232-addon.js b/node-tests/fixtures/helper-test/rfc232-addon.js index af309a80c63..dee2f2bd105 100644 --- a/node-tests/fixtures/helper-test/rfc232-addon.js +++ b/node-tests/fixtures/helper-test/rfc232-addon.js @@ -12,6 +12,6 @@ module('Integration | Helper | foo', function (hooks) { await render(hbs`{{foo this.inputValue}}`); - assert.dom(this.element).hasText('1234'); + assert.dom().hasText('1234'); }); }); diff --git a/node-tests/fixtures/helper-test/rfc232.js b/node-tests/fixtures/helper-test/rfc232.js index ad840ae1ad5..7eecc2a470f 100644 --- a/node-tests/fixtures/helper-test/rfc232.js +++ b/node-tests/fixtures/helper-test/rfc232.js @@ -12,6 +12,6 @@ module('Integration | Helper | foo/bar-baz', function (hooks) { await render(hbs`{{foo/bar-baz this.inputValue}}`); - assert.dom(this.element).hasText('1234'); + assert.dom().hasText('1234'); }); });