Merge branch 'hotfix/2.0.2'

This commit is contained in:
Jonathan Abbett 2019-10-18 14:31:46 -04:00
commit 0bdc88f4d8
6 changed files with 17 additions and 2 deletions

View File

@ -32,6 +32,10 @@ gemspec
# To use a debugger
# gem 'byebug', group: [:development, :test]
group :development, :test do
gem 'turbolinks'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 2.15'

View File

@ -1,5 +1,5 @@
<script>
const tour = new Shepherd.Tour(<%= Rails.configuration.abraham.tour_options.html_safe unless Rails.configuration.abraham.tour_options.nil? %>);
var tour = new Shepherd.Tour(<%= Rails.configuration.abraham.tour_options.html_safe unless Rails.configuration.abraham.tour_options.nil? %>);
tour.on("complete", function() {
// ajax

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true
module Abraham
VERSION = "2.0.0"
VERSION = "2.0.2"
end

View File

@ -10,5 +10,6 @@
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require turbolinks
//= require abraham
//= require_tree .

View File

@ -4,3 +4,5 @@
<div class="notice-me" style="width:300px;height:300px;background-color:whitesmoke;">
a content element to notice
</div>
<%= link_to "Other Page", dashboard_other_url %>

View File

@ -63,4 +63,12 @@ class ToursTest < ApplicationSystemTestCase
visit dashboard_home_url
assert_selector ".shepherd-element", visible: true
end
test "navigate with turbolinks between pages with tours" do
visit dashboard_home_url
assert_selector ".shepherd-element", visible: true
# Navigate to other page
find("a").click
assert_selector ".shepherd-element", visible: true
end
end