1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 describe('Multiselect Toolbar Tests', () => {
10 // Only set up common users once. These aren't set up as aliases because
11 // aliases are cleaned up after every test. Also it doesn't make sense
12 // to set the same users on beforeEach() over and over again, so we
13 // separate a little from Cypress' 'Best Practices' here.
14 cy.getUser('admin', 'Admin', 'User', true, true)
17 adminUser = this.adminUser;
19 cy.getUser('user', 'Active', 'User', false, true)
22 activeUser = this.activeUser;
26 it('exists in DOM in neutral state', () => {
27 cy.loginAs(activeUser);
28 //multiselect toolbar should exist in details card and not in data explorer
29 cy.get('[data-cy=user-details-card]').should('exist').within(() => {
30 cy.get('[data-cy=multiselect-toolbar]').should('exist');
32 cy.get('[data-cy=title-wrapper]').should('exist').within(() => {
33 cy.get('[data-cy=multiselect-button]').should('not.exist');