-
-
Notifications
You must be signed in to change notification settings - Fork 407
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
Fix/646 how to button disable on save and edit test #682
Conversation
Test summaryRun details
View run in Cypress Dashboard ➡️ Failures
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
cypress/integration/how_to.spec.ts
Outdated
|
||
describe('[Edit a how-to]', () => { | ||
it('[By Owner]', () => { | ||
cy.login('howto_creator@test.com', 'test1234') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chrismclarke The test has 2 issues which depends on another test, create-how-to, and execution order (edit needs to run after create). As a result, it's highly fragile and difficult for new devs to debug when it fails as they have no context.
I put back edit tests for some time because there are 2 questions I haven't addressed
- A test flow for edit
- Reset a specific document to the default state
- Run the edit test
- Verify the change against firestore
- an api to verify if data is updated correctly. I imagine it'd be cy.queryDocuments('some conditions').should('eq', {updated_data})
# Conflicts: # cypress/integration/howto/read.spec.ts # src/pages/Howto/Content/Common/Howto.form.tsx
closes #646
Frontend
Tests