<commit_before>const selectors = require('../../selectors')

describe('Company interaction', () => {
  beforeEach(() => {
    cy.visit('/companies/4cd4128b-1bad-4f1e-9146-5d4678c6a018/interactions')
  })

  it('Hide add interaction for archived companies', () => {
    cy.get(selectors.companyInteraction.add).should('not.be.visible')
    cy.get(selectors.companyInteraction.header).should('be.visible')

    cy.get(selectors.companyInteraction.header).should('contain', 'Company interactions')
    cy.get(selectors.companyInteraction.archivedMsg).should(
      'contain', 'Why can I not add an interaction?')
  })
})<commit_msg>Update ID to be archived company ID<commit_after>const selectors = require('../../selectors')

describe('Company interaction', () => {
  beforeEach(() => {
    cy.visit('/companies/346f78a5-1d23-4213-b4c2-bf48246a13c3/interactions')
  })

  it('Hide add interaction for archived companies', () => {
    cy.get(selectors.companyInteraction.add).should('not.be.visible')
    cy.get(selectors.companyInteraction.header).should('be.visible')

    cy.get(selectors.companyInteraction.header).should('contain', 'Company interactions')
    cy.get(selectors.companyInteraction.archivedMsg).should(
      'contain', 'Why can I not add an interaction?')
  })
})
{'fraction_non_alphanumeric': 0.165625, 'fraction_numerical': 0.034375, 'mean_word_length': 4.744394618834081, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5832762', 'n_tokens_mistral': 432, 'n_tokens_neox': 405, 'n_words': 60}