nromanen / pratical_testing_2022

0 stars 2 forks source link

Giving up a Habit from Edit Habit Page and Redirect to "My Habits" Page #157

Open yanakhoma opened 1 year ago

yanakhoma commented 1 year ago

[TC-1855] : Giving up a Habit from Edit Habit Page and Redirect to "My Habits" Page

Description

This test case verifies the behavior of the system when a user adds a habit, navigates to the edit habit page, selects the "Give up" button, confirms the action, and gets redirected to the "My Habits" page.

Precondition

  1. A registered user is logged in.
  2. The My habits page is open.

Priority

Medium

Input data

N/A

Test Steps

Step No. Step description Expected result
1. Add a new habit. The habit is successfully added.
2. Navigate to the "My Habits" page. The user is successfully directed to the "My Habits" page.
3. Locate the added habit and click on the edit icon. The user is redirected to the edit habit page.
4. Click on the "Give up" button. A confirmation dialog box appears, asking the user to confirm giving up the habit.
5. Click on the "Yes" button to confirm. The system processes the action and redirects the user to the "My Habits" page.
6. Verify the redirection to the "My Habits" page. The user is successfully redirected to the "My Habits" page. The habit that was given up is no longer displayed.

Requirement

https://github.com/ita-social-projects/GreenCity/issues/1855