<commit_before>import Vue from 'vue'

describe 'basic roster operations', () ->

  it 'loads the right route', (done) ->
    @vm.$router.push '/'
    Vue.nextTick () =>
      expect(@words('h2')).toBe 'Create a New Roster'
      done()

  it 'loads factions', () ->
    factions = @all '.roster-new .card'
    expect(factions.length).toBe 22
    expect(factions[0].textContent).toBe 'House Escher'
    expect(factions[6].textContent).toBe 'Skitarii'
    expect(factions[15].textContent).toBe 'Genestealer Cults'

  it 'links to a faction roster', (done) ->
    @vm.$router.push 'build/shadowWar/skitarii'
    Vue.nextTick () =>
      expect(@words('h2')).toBe 'Skitarii Ranger Kill Team'
      expect(@all('.available-fighter-card').length).toBe 4
      expect(@all('.chosen-fighter-card').length).toBe 0
      done()

  it 'can add a fighter', (done) ->
    @get('.available-fighter-card button').click()
    Vue.nextTick () =>
      expect(@all('.chosen-fighter-card').length).toBe 1<commit_msg>Fix tests for new necro teams<commit_after>import Vue from 'vue'

describe 'basic roster operations', () ->

  it 'loads the right route', (done) ->
    @vm.$router.push '/'
    Vue.nextTick () =>
      expect(@words('h2')).toBe 'Create a New Roster'
      done()

  it 'loads factions', () ->
    factions = @all '.roster-new .card'
    expect(factions.length).toBe 24
    expect(factions[0].textContent).toBe 'House Escher'
    expect(factions[6].textContent).toBe 'Chaos Cult Gang'
    expect(factions[17].textContent).toBe 'Genestealer Cults'

  it 'links to a faction roster', (done) ->
    @vm.$router.push 'build/shadowWar/skitarii'
    Vue.nextTick () =>
      expect(@words('h2')).toBe 'Skitarii Ranger Kill Team'
      expect(@all('.available-fighter-card').length).toBe 4
      expect(@all('.chosen-fighter-card').length).toBe 0
      done()

  it 'can add a fighter', (done) ->
    @get('.available-fighter-card button').click()
    Vue.nextTick () =>
      expect(@all('.chosen-fighter-card').length).toBe 1
{'fraction_non_alphanumeric': 0.1745166088249876, 'fraction_numerical': 0.010907288051561725, 'mean_word_length': 3.3119658119658117, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '2465911', 'n_tokens_mistral': 706, 'n_tokens_neox': 664, 'n_words': 146}