Skip to content

Commit

Permalink
Reenable wayPointImageUploadvalidation with big file size #248
Browse files Browse the repository at this point in the history
  • Loading branch information
robertfausk committed Jan 2, 2025
1 parent f22d048 commit aeaec28
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions web/tests/Acceptance/features/way_point_image_upload.feature
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ Feature: An user can upload an image when creating a new wayPoint
And I click on test element "button-way-point-submit"
And I wait for 'The provided "data:" URI is not valid.' to appear

# @javascript
# @wayPointImageUpload @ignore # chrome is crashing: unknown error: session deleted because of page crash from unknown error: cannot determine loading status from tab crashed (Session info: headless chrome=98.0.4758.102)
# Scenario: I can not add a too large image when I create a wayPoint
# Given I am authenticated as "[email protected]"
# And I go to swapp page "/runde/walkId<Gorbitz>/wegpunkt-hinzufuegen"
# Then I wait for 'Wegpunkt zur Runde "Gorbitz" hinzufügen' to appear
# And the element "locationName" should be enabled
# When I enter "Assieck" in "locationName" field
# When I enter "Straßenbahnen sind blockiert" in "note" field
# When I enter "@image_big.jpg" in "Bildupload" field
# Then I wait for "Für diese Runde gibt es keine Wegpunkte." to appear
# Then I wait for "Wegpunkt ansehen" to disappear
# And I click on test element "button-way-point-submit"
# And I wait for 'Das Bild ist mit 10.08 MB größer als die maximal erlaubten 10 MB.' to appear
@javascript
@wayPointImageUpload
Scenario: I can not add a too large image when I create a wayPoint
Given I am authenticated as "[email protected]"
And I go to swapp page "/runde/walkId<Gorbitz>/wegpunkt-hinzufuegen"
Then I wait for 'Wegpunkt zur Runde "Gorbitz" hinzufügen' to appear
And the element "locationName" should be enabled
When I enter "Assieck" in "locationName" field
When I enter "Straßenbahnen sind blockiert" in "note" field
When I enter "@image_big.jpg" in "Bildupload" field
Then I wait for "Für diese Runde gibt es keine Wegpunkte." to appear
Then I wait for "Wegpunkt ansehen" to disappear
And I click on test element "button-way-point-submit"
And I wait for 'Das Bild ist mit 10.08 MB größer als die maximal erlaubten 10 MB.' to appear

0 comments on commit aeaec28

Please sign in to comment.