Sha256: cca3b5f328ea9aa800312568a961ced93a261d86bc032e65d75c068ec6e3a008

Contents?: true

Size: 735 Bytes

Versions: 8

Compression:

Stored size: 735 Bytes

Contents

import { module, test } from "qunit";
import { setupRenderingTest } from "ember-qunit";
import { render } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";

module("Integration | Component | back-to-site-link", function (hooks) {
  setupRenderingTest(hooks);

  test("With path and text paremeter", async function (assert) {
    await render(hbs`<BackToSiteLink @path="/admin" @text="back to site"/>`);
    assert.dom("#back-to-site-panel a").exists("It shows back to site link");
  });

  test("Without required paremeters", async function (assert) {
    await render(hbs`<BackToSiteLink />`);
    assert
      .dom("#back-to-site-panel a")
      .doesNotExist("It does not show back link to site");
  });
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
logster-2.20.1 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.20.0 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.19.1 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.19.0 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.18.1 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.18.0 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.17.1 client-app/tests/integration/components/back-to-site-link-test.js
logster-2.17.0 client-app/tests/integration/components/back-to-site-link-test.js