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

[Test][cypress] Edit Profile Details #401

Open
2 tasks
elraphty opened this issue Mar 14, 2024 · 13 comments
Open
2 tasks

[Test][cypress] Edit Profile Details #401

elraphty opened this issue Mar 14, 2024 · 13 comments
Assignees
Milestone

Comments

@elraphty
Copy link
Collaborator

elraphty commented Mar 14, 2024

Context

Currently, we have a cypress command to create a user profile but we want to assert that we can edit the user's profile details.

So what we want to do is use Login User to create a user profile, click on the user icon, and edit the user profile, change the user description, Twitter username, Github username and Coding languages.

File to create

sphinx-tribes-frontend/cypress/e2e/14_edit_profile_details.cy.ts
there will be modifications to sphinx-tribes-frontend/cypress/support/commands.ts

Acceptance Criteria

  • Given a user is signed in
  • Click on the User profile icon/username, to lead you to the user profile
  • Click on the Edit button
  • Edit the user details
  • Save the updated details
  • Then Assert that the updated details become the new user details.

The edit profile modal is shown below

image

  • I have rebased and tested locally before submitting my PR
  • I can submit a PR within 2 days of taking the bounty

References

Example cypress test
https://github.com/stakwork/sphinx-tribes-frontend/blob/master/cypress/e2e/0_create_bounty.cy.ts

@saithsab877
Copy link
Contributor

saithsab877 commented Mar 14, 2024

Hi @elraphty
could you please assign me to the task?

@ColdMice
Copy link
Contributor

@elraphty can you please assign this to me. Thanks

@MahtabBukhari
Copy link
Contributor

MahtabBukhari commented Mar 14, 2024

@elraphty Could you assign me?
I have setup locally for cypress tests

@AbdulWahab3181
Copy link
Contributor

Assign me

@elraphty
Copy link
Collaborator Author

Hi @elraphty could you please assign me to the task?

@saithsab877 written any cypress tests yet?

@saithsab877
Copy link
Contributor

Hi @elraphty could you please assign me to the task?

@saithsab877 written any cypress tests yet?

Yes, #400

@elraphty
Copy link
Collaborator Author

#400

Oh! sorry you are Abubakar on Sphinx Chat, I'm assigning.

@saithsab877
Copy link
Contributor

#400

Oh! sorry you are Abubakar on Sphinx Chat, I'm assigning.

Thanks

@saithsab877
Copy link
Contributor

Hi @elraphty,

After successfully editing the user profile in the Cypress test, as I click on the save button, this scanner popup appears. I am puzzled as to what this is because it is not present on the actual website. Could you please guide me on how to tackle this issue?

image

@saithsab877
Copy link
Contributor

Hi @elraphty,
Please guide me?

@elraphty
Copy link
Collaborator Author

Hi @elraphty,

After successfully editing the user profile in the Cypress test, as I click on the save button, this scanner popup appears. I am puzzled as to what this is because it is not present on the actual website. Could you please guide me on how to tackle this issue?

image

@saithsab877 make sure you are not calling login during the process

@saithsab877
Copy link
Contributor

Hi @elraphty,
After successfully editing the user profile in the Cypress test, as I click on the save button, this scanner popup appears. I am puzzled as to what this is because it is not present on the actual website. Could you please guide me on how to tackle this issue?
image

@saithsab877 make sure you are not calling login during the process

Please check my code. I not calling login :

KAINb5l

@saithsab877
Copy link
Contributor

I create a PR then you check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 New
Development

Successfully merging a pull request may close this issue.

5 participants