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 beforeEach(function () {
28 cy.clearLocalStorage();
31 it('exists in DOM in neutral state', () => {
32 cy.loginAs(activeUser);
33 cy.get('[data-cy=multiselect-toolbar]').should('exist');
34 cy.get('[data-cy=multiselect-button]').should('not.exist');