stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

[Test][cypress] Edit Profile Details #401

Open elraphty opened 6 months ago

elraphty commented 6 months ago

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

The edit profile modal is shown below

image

References

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

saithsab877 commented 6 months ago

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

ColdMice commented 6 months ago

@elraphty can you please assign this to me. Thanks

MahtabBukhari commented 6 months ago

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

AbdulWahab3181 commented 6 months ago

Assign me

elraphty commented 6 months ago

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

@saithsab877 written any cypress tests yet?

saithsab877 commented 6 months ago

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

@saithsab877 written any cypress tests yet?

Yes, https://github.com/stakwork/sphinx-tribes-frontend/pull/400

elraphty commented 6 months ago

400

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

saithsab877 commented 6 months ago

400

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

Thanks

saithsab877 commented 6 months ago

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 commented 6 months ago

Hi @elraphty, Please guide me?

elraphty commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

I create a PR then you check it.