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

const {
  companies,
  contacts,
  dashboard,
  investments,
} = require('../../../../../src/lib/urls')

const { assertLocalNav } = require('../../support/assertions')

describe('LEP Permission', () => {
  describe('activity', () => {
    before(() => {
      cy.visit(companies.detail(fixtures.company.oneListCorp.id))
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.tabbedLocalNav().tabs, [
        'Company contacts',
        'Core team',
        'Investment',
      ])
    })
  })

  describe('dashboard', () => {
    before(() => {
      cy.visit(dashboard())
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.nav.headerNav, [
        'Companies',
        'Contacts',
        'Investments',
        'Support',
      ])
    })
  })

  describe('contact details', () => {
    before(() => {
      cy.visit(contacts.details(fixtures.contact.johnnyCakeman.id))
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.nav.sideNav, ['Details', 'Audit history'])
    })
  })

  describe('investment projects', () => {
    before(() => {
      cy.visit(
        investments.projects.details(fixtures.investmentProject.newZoo.id)
      )<commit_msg>Market Access should appear on LEP user's navigation<commit_after>const fixtures = require('../../fixtures')
const selectors = require('../../../../selectors')

const {
  companies,
  contacts,
  dashboard,
  investments,
} = require('../../../../../src/lib/urls')

const { assertLocalNav } = require('../../support/assertions')

describe('LEP Permission', () => {
  describe('activity', () => {
    before(() => {
      cy.visit(companies.detail(fixtures.company.oneListCorp.id))
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.tabbedLocalNav().tabs, [
        'Company contacts',
        'Core team',
        'Investment',
      ])
    })
  })

  describe('dashboard', () => {
    before(() => {
      cy.visit(dashboard())
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.nav.headerNav, [
        'Companies',
        'Contacts',
        'Investments',
        'Market Access',
        'Support',
      ])
    })
  })

  describe('contact details', () => {
    before(() => {
      cy.visit(contacts.details(fixtures.contact.johnnyCakeman.id))
    })

    it('should display LEP only tabs', () => {
      assertLocalNav(selectors.nav.sideNav, ['Details', 'Audit history'])
    })
  })

  describe('investment projects', () => {
    before(() => {
      cy.visit(
        investments.projects.details(fixtures.investmentProject.newZoo.id)
      )
{'fraction_non_alphanumeric': 0.19482386772106397, 'fraction_numerical': 0.0, 'mean_word_length': 2.513888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '4549926', 'n_tokens_mistral': 877, 'n_tokens_neox': 846, 'n_words': 133}