<commit_before>let moment = require('moment-timezone');
require('moment/locale/en-gb');
moment.locale("en-gb");
let todayAtString = require('../support/functions').todayAtUtcString

describe('Viewing the terminal dashboard page', function () {

  beforeEach(function () {
    cy.deleteData();
  });

  it("should display a box for every queue in the terminal", () => {
    cy
      .addFlight({
        "SchDT": todayAtString(14, 10),
        "ActChoxDT": todayAtString(14, 10),
        "ActPax": 51
      })
      .asABorderForceOfficerWithRoles(["terminal-dashboard"])
      .navigateHome()
      .visit("/#terminal/T1/dashboard/summary/?start=" + todayAtString(14,15))
      .get(".pax-bar")
      .contains("51 passengers")
      .get(".time-label")
      .contains("14:15 - 14:30")
      .get(".eeadesk")
      .contains("38 pax joining")
      .get(".eeadesk")
      .contains("6 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-up')
      .get(".next-bar")
      .click()
      .get(".time-label")
      .contains("14:30 - 14:45")
      .get(".eeadesk")
      .contains("10 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-up')
      .get(".prev-bar")
      .click()
      .get(".prev-bar")
      .click()
      .get(".time-label")
      .contains("14:00 - 14:15")
      .get(".eeadesk")
      .contains("0 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-right')
  })

});<commit_msg>DRTII-30 Add test for terminal dashboard arrivals popup<commit_after>let moment = require('moment-timezone');
require('moment/locale/en-gb');
moment.locale("en-gb");
let todayAtString = require('../support/functions').todayAtUtcString

describe('Viewing the terminal dashboard page', function () {

  beforeEach(function () {
    cy.deleteData();
  });

  it("should display a box for every queue in the terminal", () => {
    cy
      .addFlight({
        "SchDT": todayAtString(14, 10),
        "ActChoxDT": todayAtString(14, 10),
        "ActPax": 51
      })
      .asABorderForceOfficerWithRoles(["terminal-dashboard"])
      .navigateHome()
      .visit("/#terminal/T1/dashboard/summary/?start=" + todayAtString(14,15))
      .get(".pax-bar")
      .contains("51 passengers")
      .get(".time-label")
      .contains("14:15 - 14:30")
      .get(".eeadesk")
      .contains("38 pax joining")
      .get(".eeadesk")
      .contains("6 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-up')
      .get(".next-bar")
      .click()
      .get(".time-label")
      .contains("14:30 - 14:45")
      .get(".eeadesk")
      .contains("10 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-up')
      .get(".prev-bar")
      .click()
      .get(".prev-bar")
      .click()
      .get(".time-label")
      .contains("14:00 - 14:15")
      .get(".eeadesk")
      .contains("0 min wait")
      .get(".eeadesk > :nth-child(4) > .fa")
      .should('have.class', 'fa-arrow-right')
  })

  it("should display flights with PCP time in the window", () => {
    cy
      .addFlight({
        "ICAO": "TS0123",
        "IATA": "TS0123",
        "SchDT": todayAtString(10, 30),
        "ActChoxDT": todayAtString(14, 15),
        "ActPax": 300
      })
      .addFlight({
        "ICAO": "TS0124",
        "IATA": "TS0124",
        "SchDT": todayAtString(14, 10),
        "ActChoxDT": todayAtString(14, 30),
        "ActPax": 51
      })
      .asABorderForceOfficerWithRoles(["terminal-dashboard"])
      .navigateHome()
      .visit("/#terminal/T1/dashboard/summary/?start=" + todayAtString(14,15))
      .get(".show-arrivals-btn").click()
      .get(".dashboard-arrivals-popup tbody tr").contains("TS0123")
      .get(".dashboard-arrivals-popup tbody tr").should('have.length', 1)
      .get(".popover-overlay")
      .click()
      .get(".next-bar")
      .click()
      .get(".show-arrivals-btn").click()
      .get(".dashboard-arrivals-popup tbody tr").contains("TS0123")
      .get(".dashboard-arrivals-popup tbody tr").contains("TS0124")
      .get(".dashboard-arrivals-popup tbody tr").should('have.length', 2)
  })

});
{'fraction_non_alphanumeric': 0.2031213052731142, 'fraction_numerical': 0.03736107826909435, 'mean_word_length': 2.4786184210526314, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 18, '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': '3739381', 'n_tokens_mistral': 1565, 'n_tokens_neox': 1455, 'n_words': 248}