<commit_before>// Note: number of assessments are based on the base data, if that changes, change this test as well
import { expect } from "chai"
import Home from "../pages/home.page"

describe("Home page", () => {
  describe("When checking the notification numbers", () => {
    it("Should see that Erin has 1 counterpart with pending assessment and no tasks with pending assessments", () => {
      Home.open()
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      expect(Home.myCounterpartsNotifications.getText()).to.equal("1")
      // eslint-disable-next-line no-unused-expressions
      expect(Home.myTasksNotifications.isExisting()).to.be.false
    })
    it("Should see that Jack has no counterparts with pending assessment", () => {
      Home.open("/", "jack")
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      // eslint-disable-next-line no-unused-expressions
      expect(Home.myCounterpartsNotifications.isExisting()).to.be.false
    })
    it("Should see that Jack has 1 task with pending assessments", () => {
      Home.open("/", "jack")
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      expect(Home.myTasksNotifications.getText()).to.equal("1")
    })
  })
})<commit_msg>NCI-Agency/anet#3339: Add some more tests for different situations<commit_after>// Note: number of assessments are based on the base data, if that changes, change this test as well
import { expect } from "chai"
import Home from "../pages/home.page"

describe("Home page", () => {
  describe("When checking the notification numbers", () => {
    it("Should see that Erin has 1 counterpart and no tasks with pending assessments", () => {
      Home.open()
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      expect(Home.myCounterpartsNotifications.getText()).to.equal("1")
      // eslint-disable-next-line no-unused-expressions
      expect(Home.myTasksNotifications.isExisting()).to.be.false
    })
    it("Should see that Bob has no counterparts and 1 task with pending assessments", () => {
      Home.open("/", "bob")
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      // eslint-disable-next-line no-unused-expressions
      expect(Home.myCounterpartsNotifications.isExisting()).to.be.false
      expect(Home.myTasksNotifications.getText()).to.equal("1")
    })
    it("Should see that Jack has 1 counterpart and 1 task with pending assessments", () => {
      Home.open("/", "jack")
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      expect(Home.myCounterpartsNotifications.getText()).to.equal("1")
      expect(Home.myTasksNotifications.getText()).to.equal("1")
    })
    it("Should see that Nick has no counterparts and no tasks with pending assessments", () => {
      Home.open("/", "nick")
      Home.myCounterpartsLink.waitForDisplayed()
      Home.myTasksLink.waitForDisplayed()
      /* eslint-disable no-unused-expressions */
      expect(Home.myCounterpartsNotifications.isExisting()).to.be.false
      expect(Home.myTasksNotifications.isExisting()).to.be.false
      /* eslint-enable no-unused-expressions */
    })
  })
})
{'fraction_non_alphanumeric': 0.13264688067837674, 'fraction_numerical': 0.004845548152634767, 'mean_word_length': 3.613128491620112, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '3226518', 'n_tokens_mistral': 956, 'n_tokens_neox': 934, 'n_words': 213}