Sha256: a32ebe1c27e7f396cf3b799888168ff62ffd2e563cfc818658b14f0d2993ed68

Contents?: true

Size: 806 Bytes

Versions: 55

Compression:

Stored size: 806 Bytes

Contents

require 'test_helper'

module Workarea
  module Admin
    class BookmarksSystemTest < SystemTest
      include Admin::IntegrationTest

      def test_bookmarks
        visit admin.root_path

        find('#shortcuts_menu').hover
        click_link 'Current Page'

        assert_current_path(admin.root_path)
        assert(page.has_content?('Success'))

        find('.message__dismiss-button').click
        find('#shortcuts_menu').hover
        refute(page.has_content?('Current Page'))

        find('#shortcuts_menu').hover
        menu_item = all('.menu__item').last
        menu_item.hover
        find('.menu__delete-link').click
        assert_current_path(admin.root_path)
        assert(page.has_content?('Success'))
        refute(page.has_content?('Current Page'))
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
workarea-admin-3.5.1 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.23 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.22 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.0 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.21 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.0.beta.1 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.20 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.19 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.18 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.17 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.16 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.15 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.14 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.13 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.12 test/system/workarea/admin/bookmarks_system_test.rb