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

Add cypress tests for shortcut to save comments #10644

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

meven
Copy link
Contributor

@meven meven commented Dec 2, 2024

Using Ctrl+Enter in calc and writer.

See dce4671

Context: #10622 (review)

Change-Id: Ic7e947623aac6345e4ad9c92a9454dfb5b2a4c2e

  • Resolves: #
  • Target version: master

Summary

TODO

  • ...

Checklist

  • I have run make prettier-write and formatted the code.
  • All commits have Change-Id
  • I have run tests with make check
  • I have issued make run and manually verified that everything looks okay
  • Documentation (manuals or wiki) has been updated or is not required

@meven meven requested a review from vmiklos December 2, 2024 14:36
@meven meven force-pushed the meven/test-comment-ctrl-enter branch from d4fabbc to 7146cfd Compare December 2, 2024 14:38
@meven meven force-pushed the meven/test-comment-ctrl-enter branch from 7146cfd to e3724f2 Compare December 2, 2024 15:02
Copy link
Contributor

@vmiklos vmiklos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good.

Nits:

  • good to partition your test code to given (setup), when (here: do the ctrl-enter), then (assert) parts, so when it fails, it's more obvious to the next person if the interesting part of the test failed as intended (to catch badness) or it's something else
  • you make my poor live a bit easier if you only request review when CI passed (and not before), so I can also merge after approval :-)

Thanks.

@meven meven force-pushed the meven/test-comment-ctrl-enter branch from e3724f2 to a5fcc84 Compare December 2, 2024 15:45
@meven
Copy link
Contributor Author

meven commented Dec 2, 2024

you make my poor live a bit easier if you only request review when CI passed (and not before), so I can also merge after approval :-)

Sorry, since CI is very slow, this is a better practice indeed.

good to partition your test code to given (setup), when (here: do the ctrl-enter), then (assert) parts, so when it fails, it's more obvious to the next person if the interesting part of the test failed as intended (to catch badness) or it's something else

I followed the test existing construction but indeed, Given, When Then makes things a lot easier to maintain, and show an example to improve the other tests in those files.

Thanks

@meven meven enabled auto-merge (rebase) December 2, 2024 15:48
@vmiklos
Copy link
Contributor

vmiklos commented Dec 3, 2024

https://cpci.cbg.collabora.co.uk:8080/job/github_online_master_debug_vs_co-24.04_cypress_desktop/3010/console failed in calc/annotation_spec.js, seems that include your new test, if you search for "Modify and Save using shortcut Ctrl+Enter". Do you have a guess what's the problem there?

@meven
Copy link
Contributor Author

meven commented Dec 3, 2024

https://cpci.cbg.collabora.co.uk:8080/job/github_online_master_debug_vs_co-24.04_cypress_desktop/3010/console failed in calc/annotation_spec.js, seems that include your new test, if you search for "Modify and Save using shortcut Ctrl+Enter". Do you have a guess what's the problem there?

Not yet, I have been investigating.

Writer is the same.
The weird part is it worked before, and I didn't change code, so it seems spurious, still I want it stable.

I have been investigating:

                    
                    Timed out retrying after 20000ms: Expected to find element: `#document-canvas`, but never found it. Queried from:
                    
                                  > cy.get(#coolframe, [object Object]).its(0.contentDocument, [object Object])
                    
                    /home/collabora/jenkins/workspace/github_online_master_debug_vs_co-24.04_cypress_desktop/cypress_test/support/index.js:181:1
                      179 | 		return cy.get(cy.cActiveFrame, {log: false})
                      180 | 			.its('0.contentDocument', {log: false})
                    > 181 | 			.find(selector, optionsWithLogFalse);
                          | ^
                      182 | 	} else {
                      183 | 		return cy.get(cy.cActiveFrame, optionsWithLogFalse)
                      184 | 			.its('0.contentDocument', {log: false});
          cy:log ✱  Finishing test: integration_tests/desktop/calc/annotation_spec.js / Annotation Tests / Modify and Save using shortcut Ctrl+Enter

@meven meven disabled auto-merge December 19, 2024 10:16
@meven meven force-pushed the meven/test-comment-ctrl-enter branch 2 times, most recently from 2452525 to 1e17aab Compare December 23, 2024 09:30
@meven meven force-pushed the meven/test-comment-ctrl-enter branch from 1e17aab to a5e125f Compare January 7, 2025 12:20
@eszkadev eszkadev added the draft label Jan 9, 2025
@eszkadev
Copy link
Contributor

eszkadev commented Jan 9, 2025

Requires some fixes, cypress faisl seems to be related.
Please also rebase as now cypress is more stable in general.

@meven meven force-pushed the meven/test-comment-ctrl-enter branch 2 times, most recently from f2bbe8e to 6c7f5fe Compare January 9, 2025 17:21
meven and others added 2 commits January 10, 2025 11:28
Using Ctrl+Enter in calc and writer.

See dce4671

Signed-off-by: Méven Car <[email protected]>
Change-Id: Ic7e947623aac6345e4ad9c92a9454dfb5b2a4c2e
@meven meven force-pushed the meven/test-comment-ctrl-enter branch from 6c7f5fe to 7dccdc8 Compare January 10, 2025 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: To Test
Development

Successfully merging this pull request may close these issues.

3 participants