@bulk_uploader
@graphql_distribution
@frontend_homepage
Feature: Bulk Uploader - upload asssets and verify created products

  @id_9af17ce5d2840a13ef29ec25a88ebfac178e2e947025d3a0617f89bccf2a2f22
  Scenario: Upload valid template, assets upload and verify created products
    Given an orchard employee label_15063_3 for workstation
    And I log in
    And I click bulk Create Digital Products in workstation
    When I upload a valid spreadsheet with 2 products to bulk uploader
    Then I should see a success message for valid bulk upload
    When I upload assets for the products
    Then I should see a message that all products assets are succesfully uploaded
    And I should see create option enabled
    And I should see a table with products uploads to be created
    When I click create products
    Then I should see a submitting products confirmation modal
    And I can choose to submit or not submit products
    When I submit the products
    And I click bulk View Digital Bulk Sessions in workstation
    Then I can verify job in sidebar


# TODO: find a way to verify products quickly
# And I wait for products to be created
# Then I can see my uploaded products completed in history
# Then I search for a product in workstation
# And I can see the product with all metadata submitted