Sha256: b7efc0d949883309d1e87ff2fad75bc86b90898225ce5fc28e7974ae38499109

Contents?: true

Size: 679 Bytes

Versions: 33

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'Styling with custom CSS' do
  describe 'with css in the questionnaire definition', js: true do
    it 'passes the css on to the browser verbatim' do
      questionnaire = inject_questionnaire("test", <<-END)
        title 'Test questionnaire'

        css ".panel:before { content: 'special content from css'; }"

        panel do
          question :v_1, type: :string, title: 'Whodunnit?'
        end
      END

      visit_new_answer_for(questionnaire)
      expect(page).to have_content("Whodunnit")
      expect(page.body).to include(".panel:before { content: 'special content from css'; }")
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
quby-5.6.5 spec/features/custom_css_styling.rb
quby-5.6.3 spec/features/custom_css_styling.rb
quby-5.6.2 spec/features/custom_css_styling.rb
quby-5.6.1 spec/features/custom_css_styling.rb
quby-5.6.0 spec/features/custom_css_styling.rb
quby-5.5.0 spec/features/custom_css_styling.rb
quby-5.4.0 spec/features/custom_css_styling.rb
quby-5.3.1 spec/features/custom_css_styling.rb
quby-5.3.0 spec/features/custom_css_styling.rb
quby-5.2.0 spec/features/custom_css_styling.rb
quby-5.1.3 spec/features/custom_css_styling.rb
quby-5.1.2 spec/features/custom_css_styling.rb
quby-5.1.1 spec/features/custom_css_styling.rb
quby-5.1.0 spec/features/custom_css_styling.rb
quby-5.0.5 spec/features/custom_css_styling.rb
quby-5.0.4 spec/features/custom_css_styling.rb
quby-5.0.3 spec/features/custom_css_styling.rb
quby-5.0.2 spec/features/custom_css_styling.rb
quby-5.0.1 spec/features/custom_css_styling.rb
quby-5.0.0 spec/features/custom_css_styling.rb