-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Notes 100 - Comment Edit #1196
Open
OlegMoshkovich
wants to merge
15
commits into
bldrs-ai:main
Choose a base branch
from
OlegMoshkovich:Notes-100--Comment-Edit-#1186
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Notes 100 - Comment Edit #1196
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
1769593
add the toggle for the comment edit note
OlegMoshkovich 44fdb6c
organize footer component
OlegMoshkovich 1bda074
add the updated method
OlegMoshkovich eb1423c
fix the authentication issue
OlegMoshkovich 702c200
add edit tests
OlegMoshkovich 519bb1a
fix method description
OlegMoshkovich 17bf426
Merge branch 'main' into Notes-100--Comment-Edit-#1186
OlegMoshkovich 40f5bec
fix typo
OlegMoshkovich cd8a607
Merge branch 'Notes-100--Comment-Edit-#1186' of https://github.com/Ol…
OlegMoshkovich ef58f80
add the edit styles for the input
OlegMoshkovich 7866294
add a test
OlegMoshkovich 3da473a
Merge branch 'main' into Notes-100--Comment-Edit-#1186
OlegMoshkovich 63f6fda
fix the test by adding a mock for the github commnets patch
OlegMoshkovich 836dc42
fix
OlegMoshkovich a71be42
Merge branch 'main' into Notes-100--Comment-Edit-#1186
OlegMoshkovich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import '@percy/cypress' | ||
import { | ||
homepageSetup, | ||
returningUserVisitsHomepageWaitForModel, | ||
auth0Login, | ||
} from '../../support/utils' | ||
|
||
/** {@link https://github.com/bldrs-ai/Share/issues/1186} */ | ||
describe('Notes 100: Comment edit', () => { | ||
beforeEach(homepageSetup) | ||
context('Returning user visits homepage', () => { | ||
beforeEach(returningUserVisitsHomepageWaitForModel) | ||
context('Open Notes > First note --', () => { | ||
beforeEach(() => { | ||
cy.get('[data-testid="control-button-notes"]').click() | ||
cy.get('[data-testid="list-notes"] :nth-child(1) > [data-testid="note-body"]').first().click() | ||
auth0Login() | ||
}) | ||
it('Edit button should be visible', () => { | ||
cy.get(`[data-testid="list-notes"] > :nth-child(3) | ||
> [data-testid="note-card"] > .MuiCardActions-root > .MuiBox-root > [data-testid="editComment"]`) | ||
cy.percySnapshot() | ||
}) | ||
it('Comment switches to edit mode', () => { | ||
cy.get(`[data-testid="list-notes"] > :nth-child(3) | ||
> [data-testid="note-card"] > .MuiCardActions-root > .MuiBox-root > [data-testid="editComment"]`).click() | ||
cy.get('[data-testid="Save"]') | ||
cy.percySnapshot() | ||
}) | ||
it('Comment displays updated body', () => { | ||
cy.get(`[data-testid="list-notes"] > :nth-child(3) | ||
> [data-testid="note-card"] > .MuiCardActions-root > .MuiBox-root > [data-testid="editComment"]`).click() | ||
cy.get('[placeholder="Note body"]').click().type('updated body') | ||
cy.get('[data-testid="Save"]').click() | ||
// eslint-disable-next-line cypress/no-unnecessary-waiting, no-magic-numbers | ||
cy.wait(1000) | ||
cy.percySnapshot() | ||
}) | ||
}) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Fix this? #1201
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.
this code is related to the issues, i will do it in a separate PR.
Will keep this PR on comments