<commit_before>Feature: Add new partner site
  In order to be able have a partner site
  As a RSR user
  I want to be able to create a partner sites

  Background:
    Given a RSR editor named "AkvoQAAdmin"
	And that user is connected to the organization AkvoQA
	And that the user is signed in

    Scenario: Successful creation
	  Go to Partner sites in the Admin (admin/rsr/partnersite/)
	  Access the link Add partner site
	  Select AkvoQA in the Organisation dropdown
  	  Fill the field "Hostname" with "akvoqa"
  	  Fill the field "CNAME" with "http://projects.akvoqa.org"
  	  Fill the field "Return URL" with "http://www.akvoqa.org"
  	  Fill the field "About box text" with "Test text"
      Click on "Save"
	  Go to http://akvoqa.akvo.org
	  Then I want to see the text "Find projects"<commit_msg>Updated the partner sites admin feature<commit_after>Feature: Add new partner site
  In order for an RSR Organisation to have a partner site
  As a organisation administrator/editor???
  I want to be able to create a partner sites

  Background:
    Given the user is signed in
    And that the users organisation have public projects
    And the organisation to have a premium account 

    Scenario: Get new partner site form
      Given I Open the Admin partner site page (admin/rsr/partnersite/)
      When I click "Add partner site" button
      Then I want to see the users organisation pre loaded on the form
    
    Scenario: Successful creation of partner site
      Given I open the Admin partner site page (admin/rsr/partnersite/)
      When I click "Add partner site" button
      And I fill in "Hostname" with "akvoqa"
      And I fill in "CNAME" with "projects" plus local domain 
      And I fill in "Return URL" with local domain
      And I fill in "About box text" with "Test text"
      And I select the "Enabled" button
      And I click on "Save"
      And I open the new partner sites
      Then I want to see "Find projects"
{'fraction_non_alphanumeric': 0.04757033248081841, 'fraction_numerical': 0.0, 'mean_word_length': 2.9918367346938775, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '4427491', 'n_tokens_mistral': 551, 'n_tokens_neox': 532, 'n_words': 292}