[testing] Test to verify duplicate usernames are not allowed

RESOLVED WONTFIX

Status

Mozilla QA
One and Done
RESOLVED WONTFIX
4 years ago
2 years ago

People

(Reporter: bitgeeky, Assigned: tlnob, NeedInfo)

Tracking

Version 2
x86_64
Linux

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
This test is to verify that a user cannot create/edit profile with an already existing username.
(Reporter)

Updated

4 years ago
Assignee: nobody → mozpankaj1994
(Reporter)

Comment 1

4 years ago
Working on this.
(Reporter)

Comment 2

4 years ago
Test Case:

1 Create an existing user using user API
2 Login as a new user and try to register with the same username as that of existing user
3 Assert that the home registration page displays even after clicking save profile button
4 Assert appropriate error gets displayed, error to change username
5 Register the new user with a different username
6 Navigate to user profile page
7 Try to change username and set it to the username of existing user
8 Assert error gets displayed
9 Assert the page is still edit profile page
(Reporter)

Comment 3

4 years ago
10 Enter a new username and save profile
11 Assert that the displayed page is home page
(Reporter)

Comment 4

4 years ago
Created attachment 8459884 [details] [review]
Link to Github pull-request: https://github.com/mozilla/oneanddone-tests/pull/17

Test passes locally and on staging website.
Attachment #8459884 - Flags: review?(bob.silverberg)
we have decided not to add the test in this manner.
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → WONTFIX
Attachment #8459884 - Flags: review?(bob.silverberg)
Actually, we could still have this test case, but the approach to writing it needs to be different. We would make it a local-only test and use FactoryBoy to pre-populate data. I am going to reopen this as it is still a test that could be worked on, but it would need to start from scratch with a new PR.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
bitgeeky, I am going to unassign it from you as I don't know if you still have time and interest in working on it, but if you want to take it again you are free to do so.
Assignee: mozpankaj1994 → nobody

Comment 8

2 years ago
I would like to work on this issue. Is it still open?
Varna- This issue and the other one are still open. Please choose one to start with, and submit your pull request to https://github.com/mozilla/oneanddone. Mention this bug # in the pull request. Thanks!
I've assigned bug 1043794. I'd prefer to leave this one for another contributor, or at least wait until your changes have landed in bug 1043794. Thanks.
(Assignee)

Comment 11

2 years ago
Hello,
I would like to be assigned for this bug in order to get a patch in Outreachy.
Could you please assign me?
Flags: needinfo?(thais.nobre7)
(Assignee)

Comment 12

2 years ago
(In reply to Thais (:tlnob) from comment #11)
> Hello,
> I would like to be assigned for this bug in order to get a patch in
> Outreachy.
> Could you please assign me?
(Assignee)

Updated

2 years ago
Flags: needinfo?(thais.nobre7)
Thanks Thais, I've now assigned the bug to you.
Assignee: nobody → thais.nobre7
Thais, are you still working on this?
Flags: needinfo?(thais.nobre7)
Project is being retired.
Status: REOPENED → RESOLVED
Last Resolved: 2 years ago2 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.