Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Edit profile #47

Closed
AnastasiiaLutsykiv opened this issue Aug 2, 2023 · 0 comments
Closed

Edit profile #47

AnastasiiaLutsykiv opened this issue Aug 2, 2023 · 0 comments

Comments

@AnastasiiaLutsykiv
Copy link
Collaborator

AnastasiiaLutsykiv commented Aug 2, 2023

As a registered user,
I want to fill in the profile,
so that this information can represent my company/startup.

Acceptance Criteria:

Scenario 1. The initial profile setup
Given I have successfully registered
And I have been automatically navigated to the 'Профіль' page
When I review the 'Профіль' page
Then there are tabs per each group of fields
And these tabs include all fields related to the profile, except the password,
And fields previously filled during the registration are displayed as filled in the profile
And each tab has a "Зберегти зміни" button

Scenario 2. Open the profile from other pages in the system
Given I have logged in
When I am in any page within the system
Then I can see the 'Профіль' button on the top right corner of the page
When I press on the 'Профіль' button
Then I am navigated to the 'Профіль' page

Scenario 3. Save changes successfully
Given I have opened my profile page
And I have done some changes one of the tabs
When I press on "Зберегти зміни" button
Then I only changes within this tab are saved
And the toast is shown with the following text: "Зміни збережено" ???

Scenario 4. Navigation between tabs
Given I have opened my profile page
When I press on the tab name
Then I open the respective tab

Scenario 5. Integer/Text fields
Given I am in the 'Профіль' page
When I fill the integer/text field with the limit of digits/characters
Then I cannot enter more digits/characters than allowed

Scenario 6. Upload image file and validate it
Given I am in the 'Профіль' page
When I upload the image to the image-related fields
Then only files with the allowed format are available within the list of files
And the size of the file is validated (max 50 Mb)
When the the size is valid
Then the image's name is displayed
And the file is saved
When the size is invalid
Then the image is not saved
And there is a warning toast ??? with the following text: "Максимальний розмір файлу 50Mb"

Scenario 7. Update image file
Given I am in the 'Профіль' page
And there is an uploaded file
When I upload another file to the same field
And the file is valid
Then the file is replaced
When I upload another file to the same field
And the file is invalid
Then the previous file remains
And there is a warning toast with the reason

Scenario 8. Delete image file
Given I am in the 'Профіль' page
And there is an uploaded file
When I press on delete icon
Then the file is deleted
And the file name is removed

Design

Linked epic: #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants