<commit_before>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupFactoryGuy, make } from 'ember-data-factory-guy';
import { render, click, fillIn, pauseTest } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | doi-titles', function(hooks) {
  setupRenderingTest(hooks);
  setupFactoryGuy(hooks);


  test('it renders', async function(assert) {
    this.set('model', make('doi'));
    await render(hbs`{{doi-titles model=model}}`);
    await click('#add-title');
    let titles = this.element.querySelectorAll('input.title-field');

    await fillIn(titles[0], "Abhinandan: Crowds gather for Indian pilots release");
    assert.dom('input.title-field').hasValue("Abhinandan: Crowds gather for Indian pilots release");
  });

  test('add multiple titles', async function(assert) {
    this.set('model', make('doi'));
    await render(hbs`{{doi-titles model=model}}`);
    await click('#add-title');
    await click('#add-title');
    let titles = this.element.querySelectorAll('input.title-field');<commit_msg>paused test removal<commit_after>import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupFactoryGuy, make } from 'ember-data-factory-guy';
import { render, click, fillIn } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | doi-titles', function(hooks) {
  setupRenderingTest(hooks);
  setupFactoryGuy(hooks);


  test('it renders', async function(assert) {
    this.set('model', make('doi'));
    await render(hbs`{{doi-titles model=model}}`);
    await click('#add-title');
    let titles = this.element.querySelectorAll('input.title-field');

    await fillIn(titles[0], "Abhinandan: Crowds gather for Indian pilots release");
    assert.dom('input.title-field').hasValue("Abhinandan: Crowds gather for Indian pilots release");
  });

  test('add multiple titles', async function(assert) {
    this.set('model', make('doi'));
    await render(hbs`{{doi-titles model=model}}`);
    await click('#add-title');
    await click('#add-title');
    let titles = this.element.querySelectorAll('input.title-field');
{'fraction_non_alphanumeric': 0.16181084715374272, 'fraction_numerical': 0.0008964589870013447, 'mean_word_length': 5.165745856353591, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '971026', 'n_tokens_mistral': 684, 'n_tokens_neox': 688, 'n_words': 156}