Page MenuHomeSoftware Heritage

assets/vault: Trigger task creation when hitting enter key on modals
ClosedPublic

Authored by anlambert on Jan 26 2022, 3:09 PM.

Details

Summary

Simulate HTML form behavior by adding a keyup event listener on the
vault modals dedicated to tasks creation.

Related to T3845

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vlorentz added inline comments.
cypress/integration/vault.spec.js
326–328

shouldn't cypress test both?

Build is green

Patch application report for D7040 (id=25528)

Rebasing onto 0733a8de5b...

Current branch diff-target is up to date.
Changes applied before test
commit 07a63d61920e5c00d0c349cd1fcdcef319f29f6d
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Jan 26 15:06:21 2022 +0100

    assets/vault: Trigger task creation when hitting enter key on modals
    
    Simulate HTML form behavior by adding a keyup event listener on the
    vault modals dedicated to tasks creation.
    
    Related to T3845

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1307/ for more details.

cypress/integration/vault.spec.js
326–328

The click behavior is already tested in the previous test and hitting enter simply trigger a click event on the Ok button, so no need to complicate the test here.

This revision is now accepted and ready to land.Jan 28 2022, 3:32 PM