<commit_before>describe('Testing assets page', function () {
  before(function () {
    Cypress.Cookies.defaults({
      whitelist: ['session_id', 'access_token_cookie', 'refresh_token_cookie']
    })

    cy.visit('http://localhost:8080')

    cy.get('.email').type('<EMAIL>')
    cy.get('.password').type('<PASSWORD>')
    cy.get('.main-button').click()
    cy.title().should('include', 'Running Productions')

    cy.get('#toggle-menu-button').click()

    cy.get('aside').contains('Assets').click()
  })

  context('Creating assets', function () {
    const types = ['Characters', 'Props']
    const assetsFixtures = [
      {
        type: types[0],
        asset: 'Agent 327'
      }, {
        type: types[0],
        asset: 'Super Evil'
      }, {
        type: types[1],
        asset: 'Gun'
      }
    ]

    assetsFixtures.forEach(function (asset) {
      it('click to add assets ', function () {
        cy.get('.asset-list-header > .level > .level-right > div.level-item').contains('Add an asset').click()
      })

      it('select a type', function () {
        cy.get('.is-active > .modal-content > .box > form > :nth-child(1) > .control > .select > select').select(asset.type)
      })

      it('type asset input', function () {
        cy.get(':nth-child(2) > .control > .input').type(asset.asset)
      })

      it('sending the form', function () {
        cy.get('.box > :nth-child(3) > :nth-child(2)').contains('Confirm').click()
      })
    })
  })

  context('Adding tasks', function () {
    const tasksFixtures = ['Modeling', 'Setup']

    tasksFixtures.forEach(function (task) {
      it('click on add task', function () {
        cy.get('thead > tr > .actions > .button').contains('Add tasks').click().wait(500)
      })

      it('click a type of task', function () {
        cy.get('.is-active > .modal-content > .box > form > .field > .control > .select > select').select(task)
      })

      it('click on confirm', function () {
        cy.get('.is-active > .modal-content > .box > .has-text-right > .is-primary').contains('Confirm').click().wait(500)
      })
    })
  })

  context('Assignment to the created artist', function () {
    it('click on modeling', function () {
      cy.get('tbody > tr').contains('Agent 327').parent().parent().children().then(($children) => {
        $children[4].click()
      })
    })

    it('select a user: <NAME>', function () {
      cy.get('.combobox-item > .field > .control > .select > select').select('<NAME>')
    })

    it('valid the assignment', function () {
      cy.get('.flexrow > :nth-child(3) > .button').contains('Confirm').click()
    })

    it('confirm that <NAME> have a assigned', function () {
      cy.get('.avatar-link > span').contains('DP')
    })
  })

  context.only('Change status of 1er assigment in WFA', function(){


  })
})<commit_msg>WTF a task<commit_after>describe('Testing assets page', function () {
  before(function () {
    Cypress.Cookies.defaults({
      whitelist: ['session_id', 'access_token_cookie', 'refresh_token_cookie']
    })

    cy.visit('http://localhost:8080')

    cy.get('.email').type('<EMAIL>')
    cy.get('.password').type('<PASSWORD>')
    cy.get('.main-button').click()
    cy.title().should('include', 'Running Productions')

    cy.get('#toggle-menu-button').click()

    cy.get('aside').contains('Assets').click()
  })

  context('Creating assets', function () {
    const types = ['Characters', 'Props']
    const assetsFixtures = [
      {
        type: types[0],
        asset: 'Agent 327'
      }, {
        type: types[0],
        asset: 'Super Evil'
      }, {
        type: types[1],
        asset: 'Gun'
      }
    ]

    assetsFixtures.forEach(function (asset) {
      it('click to add assets ', function () {
        cy.get('.asset-list-header > .level > .level-right > div.level-item').contains('Add an asset').click()
      })

      it('select a type', function () {
        cy.get('.is-active > .modal-content > .box > form > :nth-child(1) > .control > .select > select').select(asset.type)
      })

      it('type asset input', function () {
        cy.get(':nth-child(2) > .control > .input').type(asset.asset)
      })

      it('sending the form', function () {
        cy.get('.box > :nth-child(3) > :nth-child(2)').contains('Confirm').click()
      })
    })
  })

  context('Adding tasks', function () {
    const tasksFixtures = ['Modeling', 'Setup']

    tasksFixtures.forEach(function (task) {
      it('click on add task', function () {
        cy.get('thead > tr > .actions > .button').contains('Add tasks').click().wait(500)
      })

      it('click a type of task', function () {
        cy.get('.is-active > .modal-content > .box > form > .field > .control > .select > select').select(task)
      })

      it('click on confirm', function () {
        cy.get('.is-active > .modal-content > .box > .has-text-right > .is-primary').contains('Confirm').click().wait(500)
      })
    })
  })

  context('Assignment to the created artist', function () {
    it('click on modeling', function () {
      cy.get('tbody > tr').contains('Agent 327').parent().parent().children().then(($children) => {
        $children[4].click()
      })
    })

    it('select a user: <NAME>', function () {
      cy.get('.combobox-item > .field > .control > .select > select').select('<NAME>')
    })

    it('valid the assignment', function () {
      cy.get('.flexrow > :nth-child(3) > .button').contains('Confirm').click()
    })

    it('confirm that <NAME> is assigned', function () {
      cy.get('.avatar-link > span').contains('DP')
    })
  })

  context('Change status of 1er assigment in WFA', function () {
    it('click on todo', function () {
      cy.get('tbody > tr').contains('Agent 327').parent().parent().children().then(($children) => {
        cy.wrap($children[4]).contains('todo').click()
      })
    })

    it('select WFA', function () {
      cy.get('.media-content > .control > .select > select').select('Waiting For Approval')
    })

    it('post the status', function () {
      cy.get('.control > .button').contains('Post status').click()
    })
  })
})
{'fraction_non_alphanumeric': 0.20423797881010594, 'fraction_numerical': 0.009127954360228199, 'mean_word_length': 2.6264775413711585, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 93, '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': '5545107', 'n_tokens_mistral': 1973, 'n_tokens_neox': 1887, 'n_words': 367}