21448: fixed user profile test Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox...
authorLisa Knox <lisaknox83@gmail.com>
Mon, 1 Apr 2024 15:50:54 +0000 (11:50 -0400)
committerLisa Knox <lisaknox83@gmail.com>
Mon, 1 Apr 2024 15:50:54 +0000 (11:50 -0400)
services/workbench2/cypress/e2e/user-profile.cy.js
services/workbench2/src/views-components/context-menu/menu-item-sort.ts

index f1ae051331b7690569527b45769c00b03dd25c7b..baf9073d9198599951f2dee29aac85a1f1f98ce6 100644 (file)
@@ -81,7 +81,7 @@ describe('User profile tests', function() {
             cy.get('[role=button]').should(account ? 'contain' : 'not.contain', 'Account Settings');
             cy.get('[role=button]').should(activate ? 'contain' : 'not.contain', 'Activate User');
             cy.get('[role=button]').should(deactivate ? 'contain' : 'not.contain', 'Deactivate user');
-            cy.get('[role=button]').should(login ? 'contain' : 'not.contain', 'Login As User');
+            cy.get('[role=button]').should(login ? 'contain' : 'not.contain', 'Login as user');
             cy.get('[role=button]').should(setup ? 'contain' : 'not.contain', 'Setup User');
         });
         cy.get('div[role=presentation]').click();
index d11866f121a9fa9b81115531b8699bcca1795be1..ee623de841deba428d0bf577e04268bb4f7ff555 100644 (file)
@@ -153,7 +153,7 @@ export const sortMenuItems = (menuKind: ContextMenuKind, menuItems: ContextMenuA
     const bucketMap = new Map();
     const leftovers: ContextMenuAction[] = [];
 
-    // if we have multiple dividers, we need each of them to have a different key
+    // if we have multiple dividers, we need each of them to have a different "name" property
     let count = 0;
 
     preferredOrder.forEach((name) => {