message: Update tos-consent-banner test with custom assertions
diff: import { run } from '@ember/runloop';
  import { click, render } from '@ember/test-helpers';
  import { make, mockFindRecord, setupFactoryGuy } from 'ember-data-factory-guy';
  -import { setupRenderingTest } from 'ember-qunit';
  +import { setupRenderingTest } from 'ember-osf-web/tests/helpers/osf-qunit';
  import hbs from 'htmlbars-inline-precompile';
  import { module, test } from 'qunit';
  @@ -11,7 +11,7 @@ module('Integration | Component | tos-consent-banner', hooks => {
  test('hidden when no user is logged in', async function(assert) {
  await render(hbs`{{tos-consent-banner}}`);
  - assert.equal(this.$().text().trim(), '');
  + assert.notHasText(this.element);
  });
  test('shown when current user has not accepted ToS', async function(assert) {
  @@ -22,16 +22,22 @@ module('Integration | Component | tos-consent-banner', hooks => {
  const user = make('user', { id: '1', acceptedTermsOfService: null });
  mockFindRecord('user').returns({ model: user });
  await render(hbs`{{tos-consent-banner}}`);
  - assert.ok(this.$().text().includes(
  + assert.includesText(
  + this.element,
  'We\'ve updated our Terms of Use and Privacy Policy. Please read them carefully.',
  - ), 'Displays expected text.');
  - assert.notOk(this.$().text().includes(
  + 'Displays expected text.',
  + );
  + assert.notIncludesText(
  + this.element,
  'You must read and agree to the Terms of Use and Privacy Policy.',
  - ), 'Does not display validation error message.');
  - await click(this.element.querySelector('[class*="TosConsentBanner"] button[type="submit"]') as Node);
  - assert.ok(this.$().text().includes(
  + 'Does not display validation error message.',
  + );
  + await click('[class*="TosConsentBanner"] button[type="submit"]');
  + assert.includesText(
  + this.element,
  'You must read and agree to the Terms of Use and Privacy Policy.',
  - ), 'Displays validation error message after clicking continue.');
  + 'Displays validation error message after clicking continue.',
  + );
  });
  });
  @@ -43,7 +49,7 @@ module('Integration | Component | tos-consent-banner', hooks => {
  const user = make('user', { id: '1', acceptedTermsOfService: true });
  mockFindRecord('user').returns({ model: user });
  await render(hbs`{{tos-consent-banner}}`);
  - assert.equal(this.$().text().trim(), '');
  + assert.notHasText(this.element);
  });
  });
  });
  