Skip to content

Commit

Permalink
Test fixes (#1281)
Browse files Browse the repository at this point in the history
* Set the required_version for Chromedriver

* Explicitly set the class name for resources to "Spina::Resource" to include namespace
  • Loading branch information
vanillaHafer authored Jul 31, 2023
1 parent cff4b97 commit 8af023a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spina/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class Page < ApplicationRecord
has_many :navigations, through: :navigation_items

# Pages can belong to a resource
belongs_to :resource, optional: true, touch: true
belongs_to :resource, optional: true, touch: true, class_name: "Spina::Resource"

scope :main, -> { where(resource_id: nil) }
scope :regular_pages, -> { main }
Expand Down
1 change: 1 addition & 0 deletions test/application_system_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "test_helper"

class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
Webdrivers::Chromedriver.required_version = "114.0.5735.90"
driven_by :selenium, using: :headless_chrome, screen_size: [1400, 1400]

setup do
Expand Down

0 comments on commit 8af023a

Please sign in to comment.