Validating file with UUIDs and display an error message if invalid

Description

Purpose:

Validate file with UUIDs for extension (should be csv) and in case of validation error display a callout message.

Acceptance criteria:

Scenarios

  1. Scenario 1

    • Given the query file has been dropped to the file uploader area

    • When a file to upload does not pass validation

    • Then an error modal should with an appropriate message be displayed (see Screen Shot 2020-02-20 at 11.09.26.png attachment)

  1. Scenario 2

    • Given the query file has been dropped to the file uploader area

    • When a file to upload passes validation

    • Then an error modal should not be displayed

  1. Scenario 3

    • Given the query file has been dropped to the file uploader area and the error modal is already shown

    • When a user clicks on Cancel button

    • Then an error modal should disappear

  1. Scenario 4

    • Given the query file has been dropped to the file uploader area and the error modal is already shown

    • When a user clicks on Choose file button

    • Then a choose file modal should be shown from which user can choose file

NOTE: The code coverage on the new code should be above 80%;

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Magda Zacharska February 21, 2020 at 2:14 PM

Thank you

Viktor Soroka February 21, 2020 at 10:09 AM

down the road we will allow to upload cql queries - will they need to be in csv format as well?

CSV extension should be file for that as well. I have confirmed it with for precaution.

the user should not be able to drop another file while modal is still displayed - not sure if this is what you had in mind for Scenario 3.

That is correct. In order to do that the user should do one of the following:
1) hit Canlel button and then drop the file or click the choose file button
2) hit Chose file button in the modal

Magda Zacharska February 20, 2020 at 8:36 PM

looks good but down the road we will allow to upload cql queries - will they need to be in csv format as well? Also the user should not be able to drop another file while modal is still displayed - not sure if this is what you had in mind for Scenario 3.

Viktor Soroka February 20, 2020 at 9:24 AM

, could you please review the story description, I replicated the similar UI pattern from data-import pertaining to the validation of the file. Could you please clarify whether the approach looks good to you. In case if it is okay, please verify the wording on the modal, I put them on my own - probably you expect to have more cleared ones there.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Concorde

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created January 31, 2020 at 10:27 AM
Updated March 26, 2020 at 7:35 PM
Resolved March 2, 2020 at 4:55 PM
TestRail: Cases
TestRail: Runs