[arvados-workbench2] updated: 2.4.0-184-g1591e11e

git repository hosting git at public.arvados.org
Fri Aug 12 16:40:30 UTC 2022


Summary of changes:
 cypress/integration/virtual-machine-admin.spec.js | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

       via  1591e11e1f0344c16b1ee05dcf21bdef483aa59a (commit)
      from  78ed213aa29f8af76d973b295c159a0b4764a4a1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1591e11e1f0344c16b1ee05dcf21bdef483aa59a
Author: Stephen Smith <stephen at curii.com>
Date:   Fri Aug 12 12:37:23 2022 -0400

    18979: Add test for disabling add login form with unsaved group input
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/cypress/integration/virtual-machine-admin.spec.js b/cypress/integration/virtual-machine-admin.spec.js
index f01a8911..d3b828d8 100644
--- a/cypress/integration/virtual-machine-admin.spec.js
+++ b/cypress/integration/virtual-machine-admin.spec.js
@@ -51,14 +51,24 @@ describe('Virtual machine login manage tests', function() {
                   })
             });
         cy.get('[role=tooltip]').click();
-        cy.get('[data-cy=form-dialog]')
+        cy.get('[data-cy=form-dialog]').as('add-login-dialog')
             .should('contain', 'Add login permission')
             .within(() => {
                 cy.get('label')
                   .contains('Add groups')
                   .parent()
                   .within(() => {
-                    cy.get('input').type('docker sudo{enter}');
+                    cy.get('input').type('docker ');
+                    // Veryfy submit enabled (form has changed)
+                    cy.get('@add-login-dialog').within(() => {
+                        cy.get('[data-cy=form-submit-btn]').should('be.enabled');
+                    });
+                    cy.get('input').type('sudo');
+                    // Veryfy submit disabled (partial input in chips)
+                    cy.get('@add-login-dialog').within(() => {
+                        cy.get('[data-cy=form-submit-btn]').should('be.disabled');
+                    });
+                    cy.get('input').type('{enter}');
                   })
             });
         cy.get('[data-cy=form-dialog]').within(() => {

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list