Skip to content

Commit

Permalink
Move puzzle-shell to cdn in turn stopping css breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin481 committed Mar 22, 2024
1 parent 8c946cc commit f1257df
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/javascript/application.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
import "@hotwired/turbo-rails"
import "./controllers"
import "@puzzleitc/puzzle-shell";
import "@puzzleitc/puzzle-shell/style.css";
2 changes: 2 additions & 0 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
%meta{:content => "width=device-width,initial-scale=1", :name => "viewport"}/
= csrf_meta_tags
= csp_meta_tag
= stylesheet_link_tag "application", "https://unpkg.com/@puzzleitc/puzzle-shell/dist/style.css"
= stylesheet_link_tag "application", "data-turbo-track": "reload"
= javascript_include_tag "application", "data-turbo-track": "reload", type: "module"
= javascript_include_tag "application", "https://unpkg.com/@puzzleitc/puzzle-shell/dist/bundle.js", type: "module"
= favicon_link_tag "favicon.png"
%body.d-flex.justify-content-center
%div.content
Expand Down
6 changes: 2 additions & 4 deletions spec/features/people_show_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
visit skills_path
click_link('Rails')

# We used visible false in this test because the modal is not accessible in any different way
# follow-up ticket for this: #628
expect(page).to have_selector('.modal-title', visible: false, text: 'Skill: Rails (4 Members)')
expect(page).to have_selector('.skill-row', visible: false, count: 4)
expect(page).to have_selector('.modal-title', text: 'Skill: Rails (4 Members)')
expect(page).to have_selector('.skill-row', count: 4)
end

it 'Should render elements correctly' do
Expand Down

0 comments on commit f1257df

Please sign in to comment.