@fansifter
@ad-reporting-page
Feature: Ad Reporting Ad Set and Ad pages data and design verification

  Background: Log in and open Ad Reporting page > Ad Sets tab
    Given an orchard employee fansifter-set-2-4-aries for fansifter
    When I log in
    And I open Ad Reporting page
    Then I receive "reports" data from backend

  Rule: Ad Set page

    Background: Open Ad Sets tab
      And I click Ad Sets tab
      Then I receive "ad sets" data from backend

    @FS-3210
    @FS-3211
    @id_b259243711b5b528aa6f4899e55ad21abe3ac37c2e84bacf2839441bb5382893
    Scenario: Ad Reporting > Ad Set overview Data Verification
      When I open any available ad set
      Then I receive "ad set" data from backend
      And ad set data is correctly shown in the page
      When all Ad Set page tabs are shown
      Then Ad Set's "Overview" tab is active
      And Ad Set overview elements are shown
      And ad set data is correctly shown in the page

    @FS-3213
    @FS-3235
    @id_27a47eaf3ad292845a3146c25d284f09889f65248c89d22d832a2ae2aad15924
    Scenario: Ad Reporting > Ad Set > Ads tab Data Verification
      When I open any available ad set
      And I click on ad set's "Ads" tab
      Then Ad Set's "Ads" tab is active
      When I receive "ads" data from backend
      Then Ad Set's "Ads" filters are shown
      And Default columns in ad set's "Ads" tab table are shown
      And Default Ad Set's "Ads" data is correctly shown in the table
      When I open Ad reporting Customize table modal
      Then I select all columns and save changes
      And All columns in ad set's "Ads" tab table are shown
      And All Ad Set's "Ads" data is correctly shown in the table

  Rule: Ad page

    Background: Open Ads tab
      When I click Ads tab
      Then I receive "ads" data from backend

    @FS-3252
    @id_7514997ea58bfb75db889cdd3526a4fcc294250d2f84ab6cb87c3db6a0c4394d
    Scenario Outline: Ad Reporting > Ad Overview Data & Design Verification Google
      When I filter Ads by "<objective>" objective
      Then I receive "ads" data from backend
      When I open first available ad
      Then I receive "ad" data from backend
      And ad details is correctly shown in the page for "<objective>" objective
      And ad data is correctly shown in the page for "<objective>" objective

      Examples:
        | objective     |
        | Google Video  |
        | Google Search |

    @FS-3252
    @id_a0d3c73a8178e12f49fa70fe4b018e35d332837cfd50a168dbbc446f38662ec6
    Scenario Outline: Ad Reporting > Ad Overview Data & Design Verification Meta
      When I filter Ads by "<objective>" objective
      Then I receive "ads" data from backend
      When I open first available ad
      Then I receive "ad" data from backend
      And ad details is correctly shown in the page for "<objective>" objective
      And ad data is correctly shown in the page for "<objective>" objective

      Examples:
        | objective      |
        | Meta Awareness |
        | Meta Views     |
        | Meta Sales     |
        | Meta Traffic   |

    @FS-3252
    @id_4c1efe5454e0747be417a9372f780423314ee68803075429b6013f369ee181f1
    Scenario Outline: Ad Reporting > Ad Overview Data & Design Verification TikTok
      When I filter Ads by "<objective>" objective
      Then I receive "ads" data from backend
      When I open first available ad
      Then I receive "ad" data from backend
      And ad details is correctly shown in the page for "<objective>" objective
      And ad data is correctly shown in the page for "<objective>" objective

      Examples:
        | objective                    |
        | TikTok Awareness             |
        | TikTok Video Views           |
        | TikTok Traffic               |
        | TikTok Community Interaction |
        | TikTok Web Conversions       |
