Skip to content

Commit

Permalink
'Repair' specs by explicitely marking them for capybara
Browse files Browse the repository at this point in the history
honestly: ¯\_(ツ)_/¯
  • Loading branch information
kronn committed Feb 2, 2024
1 parent e039849 commit c7cb59d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/features/cost_accounting_calculator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# encoding: utf-8

# Copyright (c) 2012-2014, Jungwacht Blauring Schweiz, Pfadibewegung Schweiz.
# Copyright (c) 2012-2024, Jungwacht Blauring Schweiz, Pfadibewegung Schweiz.
# This file is part of hitobito and licensed under the Affero General Public
# License version 3 or later. See the COPYING file at the top-level
# directory or at https://github.com/hitobito/hitobito.
Expand All @@ -15,7 +15,7 @@
context 'honorare' do
let(:report) { 'honorare' }

it 'calculates with empty values and course amounts' do
it 'calculates with empty values and course amounts', js: true do
create_course_record

sign_in
Expand Down Expand Up @@ -75,7 +75,7 @@ def create_course_record
context 'indirekte_spenden' do
let(:report) { 'indirekte_spenden' }

it 'calculates with empty values' do
it 'calculates with empty values', js: true do
sign_in
visit edit_cost_accounting_report_group_path(year: year, id: group.id, report: report)
expect(find('#aufwand_ertrag_ko_re')).to have_content('0.00 CHF')
Expand All @@ -94,7 +94,7 @@ def create_course_record
expect(find('#control_value')).to have_content('100.00 CHF')
end

it 'calculates with exiting values' do
it 'calculates with exiting values', js: true do
create_report('indirekte_spenden', aufwand_ertrag_fibu: 50, treffpunkte: 10)
create_report('raumaufwand', raeumlichkeiten: 100)
create_report('honorare', aufwand_ertrag_fibu: 200, verwaltung: 10, beratung: 30)
Expand Down

0 comments on commit c7cb59d

Please sign in to comment.