text: /**
   * Copyright (c) Microsoft Corporation. All rights reserved.  
   * Licensed under the MIT License.
  */
  
  import * as models from '../../support/Models'
  import * as modelPage from '../../support/components/ModelPage'
  import * as memoryTableComponent from '../../support/components/MemoryTableComponent'
  import * as scorerModal from '../../support/components/ScorerModal'
  import * as train from '../../support/Train'
  import * as common from '../../support/Common'
  
  describe('Train', () => {
    it('Disqualifying Entities', () => {
      models.ImportModel('z-disqualifyngEnt', 'z-disqualifyngEnt.cl')
  
      modelPage.NavigateToTrainDialogs()
      cy.WaitForTrainingStatusCompleted()
  
      train.CreateNewTrainDialog()
  
      train.TypeYourMessage('Hey')
      train.ClickScoreActionsButton()
      scorerModal.VerifyContainsEnabledAction(common.whatsYourName)
      scorerModal.VerifyContainsDisabledAction('Hey $name')
      scorerModal.VerifyContainsDisabledAction('Hey $name, what do you really want?')
      scorerModal.VerifyContainsDisabledAction("Sorry $name, I can't help you get $want")
      train.SelectAction(common.whatsYourName)
  
      train.TypeYourMessage('Sam')
      train.VerifyEntityLabel('Sam', 'name')
      train.ClickScoreActionsButton()
      memoryTableComponent.VerifyEntitiesInMemory('name', ['Sam'])
      scorerModal.VerifyContainsDisabledAction(common.whatsYourName)
      scorerModal.VerifyContainsEnabledAction('Hey Sam')
      scorerModal.VerifyContainsEnabledAction('Hey Sam, what do you really want?')
      scorerModal.VerifyContainsDisabledAction("Sorry Sam, I can't help you get $want")
      train.SelectAction('Hey Sam', 'Hey $name')
  
      train.TypeYourMessage('Hey')
      train.ClickScoreActionsButton()
      memoryTableComponent.VerifyEntitiesInMemory('name', ['Sam'])
      scorerModal.VerifyContainsDisabledAction(common.whatsYourName)
      scorerModal.VerifyContainsEnabledAction('Hey Sam')
      scorerModal.VerifyContainsEnabledAction('Hey Sam, what do you really want?')
      scorerModal.VerifyContainsDisabledAction("Sorry Sam, I can't help you get $want")
      train.SelectAction('Hey Sam, what do you really want?', 'Hey $name, what do you really want?')
  
      train.TypeYourMessage('world peace')
      train.ClickScoreActionsButton()
      memoryTableComponent.VerifyEntitiesInMemory('name', ['Sam'])
      memoryTableComponent.VerifyEntitiesInMemory('want', ['world peace'])
      scorerModal.VerifyContainsDisabledAction(common.whatsYourName)
      scorerModal.VerifyContainsDisabledAction('Hey Sam')
      scorerModal.VerifyContainsDisabledAction('Hey Sam, what do you really want?')
      scorerModal.VerifyContainsEnabledAction("Sorry Sam, I can't help you get world peace")
      train.SelectAction("Sorry Sam, I can't help you get world peace", "Sorry $name, I can't help you get $want")
  
      train.Save()
      // Manually EXPORT this to fixtures folder and name it 'z-disqualifyngEnt.Trained.cl'
    })
  })