Sha256: 75af3907204eac1abe8f018dfc48f0ae8a4f63a10db738105f14e6ae82fd9dfe
Contents?: true
Size: 831 Bytes
Versions: 62
Compression:
Stored size: 831 Bytes
Contents
require 'test_helper' module Workarea module Admin class ToolbarSystemTest < SystemTest include Admin::IntegrationTest def test_super_admin_shows_a_admin_toolbar category = create_category(name: 'Foo', active: false) visit admin.toolbar_path(id: category.to_global_id.to_param) find('.header__alert-icon').hover assert(page.has_content?(t('workarea.admin.toolbar.inactive_message', model: 'Foo'))) click_link t('workarea.admin.toolbar.admin_model_view', model: 'Foo') assert_current_path(admin.catalog_category_path(category)) visit admin.toolbar_path(id: category.to_global_id.to_param) click_link t('workarea.admin.toolbar.edit_content') assert_current_path(admin.edit_content_path(Content.for(category))) end end end end
Version data entries
62 entries across 62 versions & 1 rubygems