<commit_before>Feature: Cancel buttons
  As an author
  I want to be able to cancel out of what I'm doing and be warned appropriately
  Scenario: Cancel out of editing a draft question
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I click on the "Cancel" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"
    And I should not see "Revise Question"

  # Scenario: Cancel out of editing a draft form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of editing a draft response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of revising a question
    Given I am logged in as <EMAIL>
    And I have a published Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Revise" button
    And I click on the "Cancel" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of revising a form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of revising a response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of creating a new question
    Given I am logged in as <EMAIL>
    When I go to the list of Questions
    And I click on the create "Questions" dropdown item
    And I click on the "Cancel" button
    Then I should see "Recent Items"
    And I should see "Search Results"

  # Scenario: Cancel out of creating a new form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of creating a new response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of editing a draft question with modal warning
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of editing a draft form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of editing a draft response set with modal warning
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of revising a question with modal warning
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of revising a form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of revising a response set with modal warning
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of creating a new question with modal warning
    Given I am logged in as <EMAIL>
    When I go to the list of Questions
    And I click on the create "Questions" dropdown item
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Search Results"
    And I should see "Recent Items"

  # Scenario: Cancel out of creating a new form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of creating a new response set with modal warning
  # Given I am logged in as <EMAIL><commit_msg>Fixed one issue with cukes tests looking for old values<commit_after>Feature: Cancel buttons
  As an author
  I want to be able to cancel out of what I'm doing and be warned appropriately
  Scenario: Cancel out of editing a draft question
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I click on the "Cancel" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"
    And I should not see "Revise Question"

  # Scenario: Cancel out of editing a draft form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of editing a draft response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of revising a question
    Given I am logged in as <EMAIL>
    And I have a published Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Revise" button
    And I click on the "Cancel" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of revising a form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of revising a response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of creating a new question
    Given I am logged in as <EMAIL>
    When I go to the list of Questions
    And I click on the create "Questions" dropdown item
    And I click on the "Cancel" button
    Then I should see "My Stuff"
    And I should see "Search Results"

  # Scenario: Cancel out of creating a new form
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of creating a new response set
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of editing a draft question with modal warning
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of editing a draft form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of editing a draft response set with modal warning
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of revising a question with modal warning
    Given I am logged in as <EMAIL>
    And I have a Question with the content "What is your gender?" and the description "This is a question" and the type "MC"
    When I go to the list of Questions
    And I click on the menu link for the Question with the content "What is your gender?"
    And I click on the option to Details the Question with the content "What is your gender?"
    And I click on the "Edit" button
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Question Details"
    And I should see "Name: What is your gender?"
    And I should see "Version: 1"
    And I should see "History"
    And I should see "Comments:"

  # Scenario: Cancel out of revising a form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of revising a response set with modal warning
  # Given I am logged in as <EMAIL>

  Scenario: Cancel out of creating a new question with modal warning
    Given I am logged in as <EMAIL>
    When I go to the list of Questions
    And I click on the create "Questions" dropdown item
    And I fill in the "Description" field with "New description"
    And I click on the "Cancel" button
    Then I should see "Warning"
    And I should see "Unsaved Changes"
    When I click on the "Continue Without Saving" button
    Then I should see "Search Results"
    And I should see "My Stuff"

  # Scenario: Cancel out of creating a new form with modal warning
  # Given I am logged in as <EMAIL>
  # Scenario: Cancel out of creating a new response set with modal warning
  # Given I am logged in as <EMAIL>
{'fraction_non_alphanumeric': 0.04720473898556091, 'fraction_numerical': 0.0007404664938911515, 'mean_word_length': 3.080438066465257, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, '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': '4099037', 'n_tokens_mistral': 2969, 'n_tokens_neox': 2907, 'n_words': 1866}