<commit_before>Feature: QA
  In order to find tailored documents,
  As a user
  I want to be able to answer questions to filter by my interests

  Background:
    Given a QA finder exists
    When I visit the QA page
    Then I should see the first question

    Scenario: Answering a single option question
      Given I am answering a single answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      When I select another radio button
      When I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a single_wrapped option question
      Given I am answering a single_wrapped answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      When I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a multiple_grouped option question
      Given I am answering a multiple_grouped answer question
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      When I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a multiple option question
      Given I am answering a multiple answer question
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      When I submit my answer
      Then my options are persisted as url params

    Scenario: Answering multiple questions
      Given I am answering a single answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      When I submit my answer
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      When I submit my answer
      Then my options are persisted as url params

    Scenario: Skipping a question
      When I select skip this question
      Then no options are persisted

    Scenario: Answering the final question
      Given I am answering the final question
      When I submit my answer
      Then I am redirected to the finder results page
<commit_msg>Correctly chain actions in the Q&A feature tests<commit_after>Feature: QA
  In order to find tailored documents,
  As a user
  I want to be able to answer questions to filter by my interests

  Background:
    Given a QA finder exists
    When I visit the QA page
    Then I should see the first question

    Scenario: Answering a single option question
      Given I am answering a single answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      And I select another radio button
      And I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a single_wrapped option question
      Given I am answering a single_wrapped answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      And I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a multiple_grouped option question
      Given I am answering a multiple_grouped answer question
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      And I submit my answer
      Then my options are persisted as url params

    Scenario: Answering a multiple option question
      Given I am answering a multiple answer question
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      And I submit my answer
      Then my options are persisted as url params

    Scenario: Answering multiple questions
      Given I am answering a single answer question
      Then I should see a collection of radio buttons
      When I select a radio button
      And I submit my answer
      Then I should see a collection of checkboxes
      When I select multiple checkboxes
      And I submit my answer
      Then my options are persisted as url params

    Scenario: Skipping a question
      When I select skip this question
      Then no options are persisted

    Scenario: Answering the final question
      Given I am answering the final question
      And I submit my answer
      Then I am redirected to the finder results page

{'fraction_non_alphanumeric': 0.006098938332956856, 'fraction_numerical': 0.0, 'mean_word_length': 2.6838602329450914, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1159082', 'n_tokens_mistral': 1022, 'n_tokens_neox': 986, 'n_words': 657}