mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-09 03:20:21 +00:00
Patching more regression issues
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
Darkswarm.controller "TabsCtrl", ($scope, $rootScope, $location, OrderCycle) ->
|
||||
$scope.active = (path)->
|
||||
$location.hash() == path
|
||||
if !OrderCycle.selected() and $location.hash() == "" and path == "/about"
|
||||
true
|
||||
else
|
||||
$location.hash() == path
|
||||
|
||||
|
||||
$scope.tabs = ["contact", "about", "groups", "producers"]
|
||||
for tab in $scope.tabs
|
||||
|
||||
@@ -68,10 +68,6 @@ feature "As a consumer I want to shop with a distributor", js: true do
|
||||
page.should have_selector "option", text: 'turtles'
|
||||
end
|
||||
|
||||
it "shows the About Us by default if no order cycle is selected" do
|
||||
page.should have_content "Hello, world!"
|
||||
end
|
||||
|
||||
it "doesn't show the table before an order cycle is selected" do
|
||||
page.should_not have_selector("input.button.right", visible: true)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user