<commit_before>Feature: Invite a user without account to join a mailing list
  #In step definitions 'I' refers to @me

  Background:
    Given there is a public mailing lists named "my_mailing_list"


  # As the Mailing List administrator
  Scenario: I invite external email "<EMAIL>" to join the list
    Given I am logged in with a gadz account with email "<EMAIL>"
    And I am admin of the list "my_mailing_list"
    When I visit the page of the mailling list "my_mailing_list"
    And I fill "email" with "<EMAIL>"
    And I click "Ajouter" button
    Then "<EMAIL>" receive an email with object "Vous êtes invité à rejoindre le groupe \"my_mailing_list\""
    And this email contains a link with a token
    And "<EMAIL>" becomes subscribed to the mailinglist "some_ml" as an inactive external member


  # As the external member
  Scenario: I click the link in the mail
    Given "<EMAIL>" was invited to join the mailing list named "my_mailing_list" with token "some_token"
    When I visit "/ml/lists/invations/some_token"
    Then the page contains "my_mailing_list"
    And the page contains "J'accepte les CGU"
    And the page contains a button "Accepter"
    And the page contains a button "Refuser"<commit_msg>tests<commit_after>Feature: Invite a user without account to join a mailing list
  #In step definitions 'I' refers to @me

  Background:
    Given there is a public mailing lists named "my_mailing_list"


  # As the Mailing List administrator
  Scenario: I invite external email "<EMAIL>" to join the list
    Given I am logged in with a gadz account with email "<EMAIL>"
    And I am admin of the list "my_mailing_list"
    When I visit the page of the mailling list "my_mailing_list"
    And I fill "email" with "<EMAIL>"
    And I click "Ajouter" button
    Then "<EMAIL>" receive an email with object "Vous êtes invité à rejoindre le groupe \"my_mailing_list\""
    And this email contains a link with a token
    And "<EMAIL>" becomes subscribed to the mailinglist "some_ml" as an inactive external member


  # As the external member
  Scenario: I click the link in the mail
    Given "<EMAIL>" was invited to join the mailing list named "my_mailing_list" with token "<PASSWORD>"
    When I visit "/ml/lists/invations/some_token"
    Then the page contains "my_mailing_list"
    And the page contains "J'accepte les CGU"
    And the page contains a button "Accepter"
    And the page contains a button "Refuser"

  Scenario: I accept the invitation

  Scenario: I decline the invitation

  Scenario:
{'fraction_non_alphanumeric': 0.060474308300395255, 'fraction_numerical': 0.0, 'mean_word_length': 3.6611418047882136, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 16, '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': '4254825', 'n_tokens_mistral': 754, 'n_tokens_neox': 724, 'n_words': 364}