multiphoto.feature 1.29 KB
Newer Older
1
@javascript @mobile
movilla's avatar
movilla committed
2 3 4 5 6 7 8
Feature: viewing photos on the mobile main page
  In order to navigate Diaspora*
  As a mobile user
  I want to view some photos

  Background:
    Given a user with username "bob"
9
    When I sign in as "bob@bob.bob" on the mobile website
flaburgan's avatar
flaburgan committed
10
    And I click on selector "#compose_badge"
movilla's avatar
movilla committed
11 12

  Scenario: view full size image
Jonne Haß's avatar
Jonne Haß committed
13
    Given I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload-publisher"
14

movilla's avatar
movilla committed
15 16 17
    When I press "Share"
    And I click on selector "img.stream-photo"
    Then I should see a "img" within "#show_content"
18 19
    And I should not see a "#arrow-right" within "#main"
    And I should not see a "#arrow-left" within "#main"
movilla's avatar
movilla committed
20 21

  Scenario: view multiphoto post
Jonne Haß's avatar
Jonne Haß committed
22 23
    Given I attach the file "spec/fixtures/button.png" to hidden "file" within "#file-upload-publisher"
    And I attach the file "spec/fixtures/button.gif" to hidden "file" within "#file-upload-publisher"
24

movilla's avatar
movilla committed
25
    When I press "Share"
26 27 28
    Then I should see "+ 1" within ".additional_photo_count"

    When I click on selector "img.stream-photo"
29 30
    Then I should see a "#arrow-right" within "#main"
    And I should not see a "#arrow-left" within "#main"
31

32 33 34
    When I click on selector "#arrow-right"
    Then I should see a "#arrow-left" within "#main"
    And I should not see a "#arrow-right" within "#main"