Skip to content

Commit

Permalink
[QOLDEV-915] fix handling of schema_upload field
Browse files Browse the repository at this point in the history
- Attach a file rather than entering a string
  • Loading branch information
ThrawnCA committed Jul 15, 2024
1 parent b0023c3 commit eccee7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/features/steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,14 @@ def create_resource_from_params(context, resource_params):
if value == "default":
value = resource_default_schema
_enter_manual_schema(context, value)
elif key == "schema_upload":
if value == "default":
value = "test-resource_schemea.json"
context.execute_steps(u"""
When I clear the "schema_upload" field
And I execute the script "$('#field-schema-upload').click();"
And I attach the file "{0}" to "schema_upload"
""".format(value))
else:
context.execute_steps(u"""
When I fill in "{0}" with "{1}" if present
Expand Down

0 comments on commit eccee7b

Please sign in to comment.