import moduleForAcceptance from 'ember-api-docs/tests/helpers/module-for-acceptance';
import { test } from 'qunit';
import { visit, click, findAll } from 'ember-native-dom-helpers';

moduleForAcceptance('Acceptance | Creating Anchors');

test('Can create a link from the "Properties" tab', async function(assert) {
  await visit('/ember/1.0/classes/Container/properties');
  let [ element ] = findAll('.class-field-description--link');
  await click(element);
  assert.equal(currentURL(), `/ember/1.0/classes/Container/properties?anchor=${element.innerText}`);
});

@@ -549,16 +549,23 @@
 nnerText
+.trim()
 %7D%60);%0A%7D);

Trim the inner text used to assert url value (#602)