Sha256: 8e68cd928af2ca886fbfa8c06622254e5ebe54368396f0aefc439aa0d9748cfe

Contents?: true

Size: 1015 Bytes

Versions: 67

Compression:

Stored size: 1015 Bytes

Contents

require 'spec_helper'

feature 'Standard Flow', organization_workspace: :test do
  let(:haskell) { create(:haskell) }

  let!(:chapter) {
    create(:chapter, name: 'Functional Programming', lessons: [
        create(:lesson, name: 'Values and Functions', language: haskell, description: 'Values are everywhere...', exercises: [
            create(:exercise, name: 'The Basic Values', description: "Let's say we want to declare a variable...")
        ])
    ]) }

  before { reindex_current_organization! }

  before do
    visit '/'
  end

  scenario 'do an exercise for first time, starting from home' do
    expect(page).to have_text('Functional Programming')

    click_on 'Start Practicing!'

    expect(page).to have_text('Values and Functions')
    expect(page).to have_text('Values are everywhere...')
    expect(page).to have_text('Content')
    expect(page).to have_text('The Basic Values')
    expect(page).to have_text('Start this lesson!')
    expect(page).to_not have_text("Let's say we")
  end

end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
mumuki-laboratory-7.1.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.12 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.11 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.10 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.9 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.8 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.7 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.6 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.5 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.4 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.3 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.2 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.7 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.6 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.5 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.1 spec/features/standard_flow_spec.rb
mumuki-laboratory-7.0.0 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.4 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.3 spec/features/standard_flow_spec.rb
mumuki-laboratory-6.7.2 spec/features/standard_flow_spec.rb