<commit_before>package ui

import java.util.UUID

import play.api.test.{PlaySpecification, WebDriverFactory, WithBrowser}

class CreateDeleteTaskSpec extends PlaySpecification {

  "Application" should {

    "display a task" in new WithBrowser(webDriver = WebDriverFactory(FIREFOX), port = 19001) {
      val loginPage = browser.goTo(new LoginPage(webDriver, port))

      val taskPage = loginPage.login("testuser1", "<PASSWORD>")

      var uniqueTaskText = s"text-${UUID.randomUUID}"

      taskPage addTask uniqueTaskText

      taskPage mustHaveTaskWithText uniqueTaskText

      taskPage toggleTaskWithText uniqueTaskText

      val refreshedTaskPage = taskPage.refresh
      refreshedTaskPage mustHaveTaskWithText uniqueTaskText

      refreshedTaskPage.clearCompletedTasks
      refreshedTaskPage mustNotHaveTaskWithText uniqueTaskText
    }
  }
}<commit_msg>Clearer name for task AT spec.<commit_after>package ui

import java.util.UUID

import play.api.test.{PlaySpecification, WebDriverFactory, WithBrowser}

class CreateDeleteTaskSpec extends PlaySpecification {

  "Task page" should {

    "allow creating a task, marking it as done and clearing it" in new WithBrowser(webDriver = WebDriverFactory(FIREFOX), port = 19001) {
      val loginPage = browser.goTo(new LoginPage(webDriver, port))

      val taskPage = loginPage.login("testuser1", "<PASSWORD>")

      var uniqueTaskText = s"text-${UUID.randomUUID}"

      taskPage addTask uniqueTaskText

      taskPage mustHaveTaskWithText uniqueTaskText

      taskPage toggleTaskWithText uniqueTaskText

      val refreshedTaskPage = taskPage.refresh
      refreshedTaskPage mustHaveTaskWithText uniqueTaskText

      refreshedTaskPage.clearCompletedTasks
      refreshedTaskPage mustNotHaveTaskWithText uniqueTaskText
    }
  }
}
{'fraction_non_alphanumeric': 0.06584821428571429, 'fraction_numerical': 0.006696428571428571, 'mean_word_length': 4.336309523809524, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4989348', 'n_tokens_mistral': 514, 'n_tokens_neox': 499, 'n_words': 122}