Closed Bug 1006020 Opened 10 years ago Closed 10 years ago

[testing] Write a test for completing a task

Categories

(Mozilla QA Graveyard :: One and Done, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: bsilverberg, Assigned: bitgeeky)

Details

Attachments

(1 file)

Test steps:
0. Create an existing user in the database, with a valid Persona login (use personatest user), via a UserFactory.
1. From the home page, click on the login link.
2. Log in via Persona as the user.
3. Navigate to the Available tasks list.
4. Choose the top task.
5. From the task details page, verify that only the "Get Started" button is visible (i.e., not the other buttons listed in #7, below).
6. Click the "Get Started" button.
7. Verify that the correct task page is displayed and that the "Save for Later", "Abandon Task" and "Complete Task" buttons are visible.
8. Click the "Save for Later" button.
9. Verify that the home page is displayed and that the test appears under "Tasks in progress".
10. Click on the link for the task under "Tasks in progress".
11. From the task detail page, click "Complete task".
12. Verify that the Feeback form is displayed for the correct task.
13. Click the "No, thanks." link.
14. Verify that the home page is displayed and that the task no longer appears under the "Tasks in progress" header, and also that the "Tasks completed" now shows "1 task".
Assignee: nobody → mozpankaj1994
Bob can you please update the Test Case because there have been recent changes on the staging website.
Flags: needinfo?(bob.silverberg)
Comment on attachment 8434143 [details] [review]
Link to Github pull-request: https://github.com/mozilla/oneanddone-tests/pull/6

Great start, :bitgeeky. There are a number of comments in the PR to be addressed.
Attachment #8434143 - Flags: review?(bob.silverberg) → review-
Flags: needinfo?(bob.silverberg)
(In reply to Pankaj Malhotra (:bitgeeky) from comment #2)
> Bob can you please update the Test Case because there have been recent
> changes on the staging website.

I have added comments to the PR to address the changes to staging. It's not necessary to update the bug as this is now a work in progress. The bug was just a starting point, but does not need to remain the canonical source of the requirements.
Attachment #8434143 - Flags: review- → review?
Comment on attachment 8434143 [details] [review]
Link to Github pull-request: https://github.com/mozilla/oneanddone-tests/pull/6

Looks good. Just s few more small changes needed. See PR for details.
Attachment #8434143 - Flags: review? → review-
Attachment #8434143 - Flags: review- → review?(bob.silverberg)
Comment on attachment 8434143 [details] [review]
Link to Github pull-request: https://github.com/mozilla/oneanddone-tests/pull/6

Great work!
Attachment #8434143 - Flags: review?(bob.silverberg) → review+
Landed in https://github.com/mozilla/oneanddone-tests/commit/53bf5a5605829d2752588d2307f253c81d07440d
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Automation is running, PR is closed, marking as verified.
Status: RESOLVED → VERIFIED
Product: Mozilla QA → Mozilla QA Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: