<commit_before>describe('Restrict access by port', () => {

  Cypress.Commands.add('assertAccessRestricted', () => {
    cy.get('#access-restricted').should('exist')
      .get('#email-for-access').should('exist');
  });

  describe('Restrict access by port', () => {

    it("When I have the correct permission to view the port I see the app", () => {
      cy
        .asATestPortUser()
        .navigateHome().then(() => cy.contains('.navbar-drt', 'DRT TEST'));
    });

    // it("During business hours I should see only the DRT Team contact address but Out of Hours I should see the Support phone number", () => {
    //   cy
    //     .server()
    //     .route({ method: 'GET', url: 'ooh-status', status: 200, response: { "localTime": "2019-08-12 16:58", "isOoh": true }, delay: 100, })
    //     .as('getSupportOOH')
    //     .asANonTestPortUser()
    //     .navigateHome()
    //     .wait('@getSupportOOH')
    //     .assertAccessRestricted()
    //     .get(".access-restricted")
    //     .contains("For urgent issues contact our out of hours support team on")
    //     .get('#alternate-ports')
    //     .should('not.exist')
    //     .route({ method: 'GET', url: 'ooh-status', status: 200, response: { "localTime": "2019-08-12 16:58", "isOoh": false }, delay: 100, })
    //     .as('getSupportInHours')
    //     .navigateHome()
    //     .wait('@getSupportInHours')
    //     .get(".access-restricted")
    //     .contains("Contact the Dynamic Response Tool service team by email at")
    //     ;
    // });


    // it("When I only have permission to view LHR I see access restricted page with a link to LHR only", () => {
    //   cy
    //     .asAnLHRPortUser()
    //     .navigateHome()
    //     .assertAccessRestricted()
    //     .get('#alternate-ports')
    //     .should('exist')
    //     .contains('#LHR-link', 'LHR')
    //     .get('#LGW-link')
    //     .should('not.exist');
    // });

    // it("When I have permission to view LHR and LGW I see access restricted page with a link to both ports", () => {
    //   cy
    //     .setRoles(["LHR", "LGW"])
    //     .navigateHome()
    //     .assertAccessRestricted()
    //     .get('#alternate-ports')
    //     .should('exist')
    //     .then(() => {
    //       cy.contains('#LHR-link', 'LHR')
    //       cy.contains('#LGW-link', 'LGW');
    //     });
    // });
  });
});<commit_msg>DRTII-627 Remove tests no longer relevant<commit_after>describe('Restrict access by port', () => {

  Cypress.Commands.add('assertAccessRestricted', () => {
    cy.get('#access-restricted').should('exist')
      .get('#email-for-access').should('exist');
  });

  describe('Restrict access by port', () => {

    it("When I have the correct permission to view the port I see the app", () => {
      cy
        .asATestPortUser()
        .navigateHome().then(() => cy.contains('.navbar-drt', 'DRT TEST'));
    });
  });
});
{'fraction_non_alphanumeric': 0.19774204584331168, 'fraction_numerical': 0.013342456380431064, 'mean_word_length': 2.185185185185185, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 17, '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': '4035667', 'n_tokens_mistral': 978, 'n_tokens_neox': 916, 'n_words': 216}