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

fix(TextEditor): don't autofocus editor when loading in edit mode #929

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Oct 5, 2023

Fixes: #596

This might also help with flakyness of some Cypress tests.

@mejo- mejo- added bug Something isn't working 3. to review labels Oct 5, 2023
@mejo- mejo- requested a review from max-nextcloud October 5, 2023 15:57
@mejo- mejo- force-pushed the fix/no_focus_editor branch from 682735f to be75135 Compare October 5, 2023 16:08
@cypress
Copy link

cypress bot commented Oct 5, 2023

2 failed and 2 flaky tests on run #1183 ↗︎

2 240 0 0 Flakiness 2

Details:

fix(TextEditor): don't autofocus editor when loading in edit mode
Project: Collectives Commit: fae3f59381
Status: Failed Duration: 18:48 💡
Started: Oct 9, 2023 2:47 PM Ended: Oct 9, 2023 3:06 PM
Failed  cypress/e2e/pages.spec.js • 2 failed tests • Nextcloud master

View Output Video

Test Artifacts
Page > Using the search providers to search for a page > Search for page title Output Screenshots
Page > Using the search providers to search for a page > Search for page content Output Screenshots
Flakiness  page-list.spec.js • 1 flaky test • Nextcloud stable27

View Output Video

Test Artifacts
Page list > Page trash > allows to trash and restore page with subpage and attachment Output Screenshots
Flakiness  page-details.spec.js • 1 flaky test • Nextcloud stable25

View Output Video

Test Artifacts
Page details > Display table of contents > Allows to display/close TOC and switch page modes in between Output Screenshots

Review all test suite changes for PR #929 ↗︎

mejo- added 2 commits October 9, 2023 16:38
Fixes: #596

This might also help with flakyness of some Cypress tests.

Signed-off-by: Jonas <jonas@freesources.org>
* Use `newPageContent` if a new page is created (regardless whether
  template or not).
* Use `newPageTitle` to indicate that the new page needs a title (in
  case it's not a template).
* Move logic to set `newPageContent` to `done` into TextEditor
  component, to make sure we always load the editor for new page
  content.

Should fix the flakyness of Cypress test 'New page has template content'.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- merged commit 12d40bf into main Oct 9, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix/no_focus_editor branch October 9, 2023 15:25
max-nextcloud added a commit that referenced this pull request Oct 10, 2023
Fixes #933.
Fixed by #929.

Signed-off-by: Max <max@nextcloud.com>
mejo- added a commit that referenced this pull request Oct 10, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Oct 10, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Oct 10, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Oct 11, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Oct 31, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 1, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 1, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 6, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 6, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 6, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 7, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
mejo- added a commit that referenced this pull request Nov 8, 2023
Incorporate changes from #929 into new component.

Signed-off-by: Jonas <jonas@freesources.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do not autofocus when opening new page in edit mode
2 participants