mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
Update specs
This commit is contained in:
parent
6a6c3c938f
commit
9bcd522e25
3 changed files with 3 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ FactoryBot.define do
|
|||
|
||||
settings do
|
||||
{
|
||||
'route_opacity' => '50',
|
||||
'route_opacity' => 60,
|
||||
'meters_between_routes' => '500',
|
||||
'minutes_between_routes' => '30',
|
||||
'fog_of_war_meters' => '100',
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ RSpec.describe TrackSerializer do
|
|||
let(:track) { create(:track, user: user, original_path: 'LINESTRING(0 0, 1 1, 2 2)') }
|
||||
|
||||
it 'converts geometry to WKT string format' do
|
||||
expect(serialized_track[:original_path]).to eq('LINESTRING (0 0, 1 1, 2 2)')
|
||||
expect(serialized_track[:original_path]).to match(/LINESTRING \(0(\.0)? 0(\.0)?, 1(\.0)? 1(\.0)?, 2(\.0)? 2(\.0)?\)/)
|
||||
expect(serialized_track[:original_path]).to be_a(String)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -447,7 +447,7 @@ RSpec.describe 'Map Interaction', type: :system do
|
|||
# Find and update route opacity
|
||||
within('.leaflet-settings-panel') do
|
||||
opacity_input = find('#route-opacity')
|
||||
expect(opacity_input.value).to eq('50') # Default value
|
||||
expect(opacity_input.value).to eq('60') # Default value
|
||||
|
||||
# Change opacity to 80%
|
||||
opacity_input.fill_in(with: '80')
|
||||
|
|
|
|||
Loading…
Reference in a new issue