Sha256: 50a613bc9187d75641403c6370ad699b0d28955099e1d479f833b010e624261f

Contents?: true

Size: 495 Bytes

Versions: 46

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

shared_examples "going back to list button" do
  it "shows the back button" do
    expect(page).to have_link(href: main_component_path(component) + manifest_name)
  end

  context "when clicking the back button" do
    before do
      click_link(href: main_component_path(component) + manifest_name)
    end

    it "redirect the user to component index" do
      expect(page).to have_current_path(main_component_path(component) + manifest_name)
    end
  end
end

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
decidim-core-0.27.9 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.8 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.7 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.6 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.10 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.9 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.5 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.8 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.4 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.3 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.7 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.5 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.2 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.1 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.4 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.0 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.3 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.0.rc2 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.27.0.rc1 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb
decidim-core-0.26.2 lib/decidim/core/test/shared_examples/back_to_list_button_examples.rb