Commit bf2825afcf5ac5afc0dfcec1a6090ce9c5abb25e
Exists in
master
and in
21 other branches
Merge remote-tracking branch 'origin/master'
Showing
3 changed files
with
9 additions
and
90 deletions
Show diff stats
features/gallery_navigation.feature
| ... | ... | @@ -1,86 +0,0 @@ |
| 1 | -Feature: gallery_navigation | |
| 2 | - As a noosfero user | |
| 3 | - I want to navigate over image gallery | |
| 4 | - | |
| 5 | - Background: | |
| 6 | - Given the following users | |
| 7 | - | login | | |
| 8 | - | marciopunk | | |
| 9 | - And the following galleries | |
| 10 | - | owner | name | | |
| 11 | - | marciopunk | my-gallery | | |
| 12 | - | marciopunk | other-gallery | | |
| 13 | - And the following files | |
| 14 | - | owner | file | mime | parent | | |
| 15 | - | marciopunk | rails.png | image/png | my-gallery | | |
| 16 | - | marciopunk | rails.png | image/png | other-gallery | | |
| 17 | - | marciopunk | other-pic.jpg | image/jpeg | my-gallery | | |
| 18 | - | |
| 19 | - Scenario: provide link to go to next image | |
| 20 | - Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 21 | - Then I should see "Next »" | |
| 22 | - | |
| 23 | - @selenium | |
| 24 | - Scenario: view next image when follow next link | |
| 25 | - Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 26 | - When I follow "Next »" | |
| 27 | - Then I should see "rails.png" within ".title" | |
| 28 | - | |
| 29 | - Scenario: not link to next when in last image | |
| 30 | - When I am on /marciopunk/my-gallery/rails.png?view=true | |
| 31 | - Then I should see "« Previous" within ".gallery-navigation a" | |
| 32 | - And I should not see "Next »" within ".gallery-navigation a" | |
| 33 | - | |
| 34 | - Scenario: provide link to go to previous image | |
| 35 | - Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 36 | - Then I should see "« Previous" | |
| 37 | - | |
| 38 | - @selenium | |
| 39 | - Scenario: view previous image when follow previous link | |
| 40 | - Given I am on /marciopunk/my-gallery/rails.png?view=true | |
| 41 | - When I follow "« Previous" | |
| 42 | - Then I should see "other-pic.jpg" within ".title" | |
| 43 | - | |
| 44 | - Scenario: not link to previous when in first image | |
| 45 | - When I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 46 | - Then I should see "Next »" within ".gallery-navigation a" | |
| 47 | - And I should not see "« Previous" within ".gallery-navigation a" | |
| 48 | - | |
| 49 | - Scenario: display number of current and total of images | |
| 50 | - Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 51 | - Then I should see "image 1 of 2" within ".gallery-navigation" | |
| 52 | - | |
| 53 | - Scenario: increment current number when follow next | |
| 54 | - Given I am on /marciopunk/my-gallery/other-pic.jpg?view=true | |
| 55 | - Then I should see "image 1 of 2" within ".gallery-navigation" | |
| 56 | - When I follow "Next »" | |
| 57 | - Then I should see "image 2 of 2" within ".gallery-navigation" | |
| 58 | - | |
| 59 | - Scenario: decrement current number when follow next | |
| 60 | - Given I am on /marciopunk/my-gallery/rails.png?view=true | |
| 61 | - Then I should see "image 2 of 2" within ".gallery-navigation" | |
| 62 | - When I follow "« Previous" | |
| 63 | - Then I should see "image 1 of 2" within ".gallery-navigation" | |
| 64 | - | |
| 65 | - Scenario: provide button to go back to gallery | |
| 66 | - Given I am on /marciopunk/my-gallery/rails.png?view=true | |
| 67 | - Then I should see "Go back to my-gallery" | |
| 68 | - When I follow "Go back to my-gallery" | |
| 69 | - Then I should be on /marciopunk/my-gallery | |
| 70 | - | |
| 71 | - # Looking for page title is problematic on selenium since it considers the | |
| 72 | - # title to be invibible. Checkout some information about this: | |
| 73 | - # * https://github.com/jnicklas/capybara/issues/863 | |
| 74 | - # * https://github.com/jnicklas/capybara/pull/953 | |
| 75 | - @selenium | |
| 76 | - Scenario: image title in window title | |
| 77 | - Given I am logged in as "marciopunk" | |
| 78 | - When I go to /marciopunk/other-gallery/rails.png?view=true | |
| 79 | - Then I should see "rails.png" within any "h1" | |
| 80 | -# And the page title should be "rails.png" | |
| 81 | - And I follow "Edit" | |
| 82 | - And I fill in "Title" with "Rails is cool" | |
| 83 | - And I press "Save" | |
| 84 | - When I go to /marciopunk/other-gallery/rails.png?view=true | |
| 85 | - Then I should see "Rails is cool" within any "h1" | |
| 86 | - #Then the page title should be "Rails is cool" |
util/debian-install/Vagrantfile
| ... | ... | @@ -7,7 +7,8 @@ VAGRANTFILE_API_VERSION = "2" |
| 7 | 7 | require 'fileutils' |
| 8 | 8 | debs = `find ../../pkg/ -name '*.deb' | sort -t _ -V | tail -2`.split |
| 9 | 9 | if debs.empty? |
| 10 | - puts "W: no debs built in ../../pkg/; will install local ones, or none at all" | |
| 10 | + puts "W: no debs built in ../../pkg/; will either install existing local" | |
| 11 | + puts " ones, or the ones from the remote repository" | |
| 11 | 12 | else |
| 12 | 13 | local_debs = Dir.glob('*.deb') |
| 13 | 14 | debs.each do |f| | ... | ... |
util/debian-install/install
| ... | ... | @@ -69,6 +69,10 @@ apt-get update |
| 69 | 69 | apt-get dist-upgrade -qy |
| 70 | 70 | apt-get install -qy postgresql ruby1.8 |
| 71 | 71 | |
| 72 | -dpkg --unpack /vagrant/noosfero_*.deb /vagrant/noosfero-apache_*.deb | |
| 73 | -apt-cache policy noosfero | |
| 74 | -apt-get install -qyf | |
| 72 | +if dpkg --unpack /vagrant/noosfero_*.deb /vagrant/noosfero-apache_*.deb; then | |
| 73 | + apt-cache policy noosfero | |
| 74 | + apt-get install -qyf | |
| 75 | +else | |
| 76 | + apt-cache policy noosfero | |
| 77 | + apt-get install -qy noosfero noosfero-apache | |
| 78 | +fi | ... | ... |