Then(/^I see that the top tracks component works$/) do
  on(ReactWorkstation::ReactHomePage) do |page|
    page.wait_until { page.top_sound_recordings_element.present? }
    expect(page.top_sound_recordings_element.present?).to be true
    expect(page.top_sound_recordings_text_element.link_element.text.empty?).to be false
  end
end

Then(/^I see that the header works$/) do
  on(ReactWorkstation::ReactHomePage) do |page|
    page.wait_until { page.label_name_dropdown_element.present? }
    page.wait_until { page.header_loader_element.when_not_present }
    expect(page.label_name_dropdown_element.text).to include @users.workstation_user_data[:contact_name]
    expect(
      page.label_name_dropdown_element.text
    ).to include @users.workstation_user_data[:vendor_name]
  end
end

Then(/^I see that the footer works$/) do
  on(ReactWorkstation::ReactHomePage) do |page|
    page.wait_until { page.footer_element.present? }
    expect(page.footer_element.present?).to be true
  end
end
