Feature: Songwhip Presave Creation

  @songwhip_presave
  @songwhip_app
  @no-silent-login
  @id_76b3d2b817d93814d8547104425da8a5e10a7050289746239d59ff3a03212559
  Scenario: Create and publish presave with UPC
    Given an environment dependent user songwhip-prod for prod or songwhip-staging for qa for songwhip
    When I log in
    And I delete existing songwhip presave releases with name "Auto Test Release 012345678905"
    And I open the songwhip create home page
    And I start creating a songwhip presave
    And I select songwhip artist "Immortal"
    Then I should see the songwhip presave creation form
    When I fill songwhip presave details with name "Auto Test Release 012345678905" and identifier "012345678905"
    And I skip songwhip artwork upload
    Then I should see the songwhip draft page
    When I publish the songwhip presave draft
    Then the songwhip presave should be published successfully
    When an external user signs up for the presave via spotify

  @songwhip_presave
  @songwhip_app
  @no-silent-login
  @id_70c8bc59b1ec8afc1fe0d9228f211cc5c14e368dafdea11d2e894be29195a2dc
  Scenario: Create and publish presave with ISRC
    Given an environment dependent user songwhip-prod for prod or songwhip-staging for qa for songwhip
    When I log in
    And I delete existing songwhip presave releases with name "Auto Test Release BCA7I2100114"
    And I open the songwhip create home page
    And I start creating a songwhip presave
    And I select songwhip artist "Tagore"
    Then I should see the songwhip presave creation form
    When I fill songwhip presave details with name "Auto Test Release BCA7I2100114" and identifier "BCA7I2100114"
    And I skip songwhip artwork upload
    Then I should see the songwhip draft page
    When I publish the songwhip presave draft
    Then the songwhip presave should be published successfully
    When an external user signs up for the presave via spotify

  @songwhip_presave
  @songwhip_app
  @no-silent-login
  @id_f5be73593ed1a3fd38c802ec741253fe8f7fc093f51e79fb9e25947bacf50744
  Scenario Outline: Create and publish presave with Spotify link (<spotifyId>)
    Given an environment dependent user songwhip-prod for prod or songwhip-staging for qa for songwhip
    When I log in
    And I delete existing songwhip presave releases with name "Auto Test Release Spotify Track <spotifyId>"
    And I open the songwhip create home page
    And I start creating a songwhip presave
    And I select songwhip artist "Tagore"
    Then I should see the songwhip presave creation form
    When I fill songwhip presave details with name "Auto Test Release Spotify Track <spotifyId>" and identifier "<spotifyUrl>"
    And I skip songwhip artwork upload
    Then I should see the songwhip draft page
    When I publish the songwhip presave draft
    Then the songwhip presave should be published successfully
    When an external user signs up for the presave via spotify

    Examples:
      | spotifyUrl                                            | spotifyId              |
      | https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV | 0DiWol3AO6WpXZgp0goxAV |
      | https://open.spotify.com/album/6DEjYFkNZh67HP7R9PSZvv | 6DEjYFkNZh67HP7R9PSZvv |
