Sha256: db54628475049c6fdbba4222e50fdfbd0bf4f1f3bda5dc62f998e7e0d5ab9ea3
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
require 'spec_helper' feature 'FAQ', :js do given!(:user) { create(:user) } given!(:question_category) { create(:question_category, name: 'Shopping') } given!(:question) do create(:question, question_category: question_category, question: 'Do you sell stuff?', answer: 'Think so..') end background do visit spree.faq_path end scenario 'have all elements' do expect(page).to have_text Spree.t(:frequently_asked_questions, scope: :spree_faq) expect(page).to have_text 'Shopping' expect(page).to have_text 'Do you sell stuff?' end context 'when click on question' do scenario 'show answer' do click_link 'Do you sell stuff?' expect(page).to have_text 'Think so..' end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spree-faq-2.2.0 | spec/features/faq_spec.rb |
spree-faq-2.1.0 | spec/features/faq_spec.rb |
spree-faq-2.0.0 | spec/features/faq_spec.rb |