Commit 36a01730 authored by Pramith Dayananda's avatar Pramith Dayananda
Browse files

Bug 1694201: Fix JS for export collections

export.js: collections container not identified

Change-Id: Ib9fe9f1316f928eaec9f0598d028f3fa53dcaecf
parent eebccbc0
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -14,11 +14,9 @@ jQuery(function($) {
    $('#whatviewsselection').removeClass('hidden');

    var containers = {
        'views': {'container': $('#whatviews'), 'visible': false}
        'views': {'container': $('#whatviews'), 'visible': false},
        'collections': {'container': $('#whatcollections'), 'visible': false}
    };
    if ($('#whatcollections').length) {
        containers.collections = {'container': $('#whatcollections')[0], 'visible': false};
    }

    var radios = [];

+11 −0
Original line number Diff line number Diff line
@@ -44,6 +44,17 @@ Scenario: Creating a collection AND adding pages
    And "Testing page 1" "link" should appear before "Testing page 2" "link"
    And "Testing page 2" "link" should appear before "Testing page 3" "link"

    # Exporting pages and collections
    And I choose "Export" in "Portfolio" from main menu
    And I select the radio "Standalone HTML website"
    And I select the radio "Just some of my pages"
    And I should see "Pages to export"
    And I select the radio "Just some of my collections"
    And I should see "Collections to export"
    And I select the radio "All my data"
    And I should not see "Pages to export"
    And I should not see "Collections to export"

    # Sharing the collection then adding in a new page
    And I choose "Shared by me" in "Portfolio" from main menu
    And I follow "Edit access"