<commit_before>Feature: 

  As a user
  I want to be able to export data as CSV 
  So that an user has flexibility in how the use the data in the system

  Background:
    Given the following children exist in the system:
      | name    | unique_id|
      | Dan     | dan_123  |
      | Dave    | dave_456 |
      | Mike    | mike_789 |

  @wip #TODO Have a look at it once the ci infrastructure problems are out.
  Scenario: Users can export to CSV as the result of a search
    Given I am logged in as a user with "View And Search Child,Export to Photowall/CSV/PDF" permissions
    When I search using a name of "D"
    Then I wait for 6 seconds
    And I select search result #1
    And I press "Export to CSV"
    Then I should receive a CSV file with 2 lines
    And the CSV data should be:
      | name    |unique_identifier|
			| Dan     |dan_123  |

  Scenario: When there are no search results, there is no csv export link
    Given I am logged in as a user with "View And Search Child,Export to Photowall/CSV/PDF" permissions<commit_msg>[CI] Yekkanti removed the lexing error on cuke<commit_after>Feature: 

  As a user
  I want to be able to export data as CSV 
  So that an user has flexibility in how the use the data in the system

  Background:
    Given the following children exist in the system:
      | name    | unique_id|
      | Dan     | dan_123  |
      | Dave    | dave_456 |
      | Mike    | mike_789 |

  @wip
  Scenario: Users can export to CSV as the result of a search
    Given I am logged in as a user with "View And Search Child,Export to Photowall/CSV/PDF" permissions
    When I search using a name of "D"
    Then I wait for 6 seconds
    And I select search result #1
    And I press "Export to CSV"
    Then I should receive a CSV file with 2 lines
    And the CSV data should be:
      | name    |unique_identifier|
			| Dan     |dan_123  |

  Scenario: When there are no search results, there is no csv export link
    Given I am logged in as a user with "View And Search Child,Export to Photowall/CSV/PDF" permissions
{'fraction_non_alphanumeric': 0.04466019417475728, 'fraction_numerical': 0.014563106796116505, 'mean_word_length': 2.565743944636678, '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': '4106405', 'n_tokens_mistral': 640, 'n_tokens_neox': 591, 'n_words': 319}