test('it submits', async function(assert) {
    await render(hbs`<PageContact />`);

    this.server.post('https://guqdu9qkgf.execute-api.eu-central-1.amazonaws.com/production', request => {
      assert.equal(request.method, 'POST');
      assert.equal(request.requestHeaders['content-type'], 'application/json');
      assert.deepEqual(JSON.parse(request.requestBody), {
        email: '*****@*****.**',
        message: 'The message!',
        name: 'Name',
      });

      return [200, {}, ''];
    });

    // make sure the form is connected to the document so we can submit
    document.querySelector('#app').appendChild(this.containerElement);

    this.containerElement.querySelector('#name').value = 'Name';
    this.containerElement.querySelector('#email').value = '*****@*****.**';
    this.containerElement.querySelector('#message').value = 'The message!';
    this.containerElement.querySelector('button[type="submit"]').click();
  });
 test('it renders', async function(assert) {
   /*
    * You may pass data into the component through arguments set on the
    * `testContext`
    *
    * For example:
    *
    * ```
    * this.foo = { foo: '123' };
    *
    * await render(hbs`<ClientsGrid @foo={{this.foo}} />`)
    *
    * // or
    *
    * this.foo = 'bar';
    * await render(hbs`<p>{{this.foo}}</p>`);
    *
    * assert.dom('p').text('bar');
    * ```
    */
   await render(hbs`<ClientsGrid />`);
   assert.ok(this.containerElement.querySelector('div'));
 });
  test('it renders', async function(assert) {
    await render(hbs`<PageLegalPrivacy />`);

    assert.ok(this.containerElement.querySelector('div'));
  });
  test('it renders', async function(assert) {
    await render(hbs`<PageEmberExpertise />`);

    assert.ok(this.containerElement.querySelector('div'));
  });
  test('it renders', async function(assert) {
    await render(hbs`<PageCaseStudyTrainline />`);

    assert.ok(this.containerElement.querySelector('div'));
  });
  test('it renders', async function(assert) {
    await render(hbs`<CardTalks />`);

    assert.ok(this.containerElement.querySelector('div'));
  });
  test('it renders', async function(assert) {
    await render(hbs`<ArrowLink />`);

    assert.ok(this.containerElement.querySelector('a'));
  });
  test('it does not render the cookie banner initially', async function(assert) {
    await render(hbs`<Simplabs />`);

    assert.notOk(this.containerElement.textContent.includes('This website uses cookies'));
  });
  test('it renders', async function(assert) {
    await render(hbs`<ShapeAcrossLeadingExperts />`);

    assert.ok(this.containerElement.querySelector('div'));
  });
  test('it adds a "target" attribute with value "_blank" for external links', async function(assert) {
    await render(hbs`<ArrowLink @href="https://github.com" />`);

    assert.equal(this.containerElement.querySelector('a').target, '_blank');
  });