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.4.45 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.44 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.43 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.42 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.41 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.19 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.40 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.18 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.39 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.17 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.38 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.16 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.37 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.15 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.36 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.14 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.35 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.13 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.4.34 test/system/workarea/admin/bookmarks_system_test.rb
workarea-admin-3.5.12 test/system/workarea/admin/bookmarks_system_test.rb