1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 describe("Project tests", function () {
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("creates a new project with multiple properties", function () {
27 const projName = `Test project (${Math.floor(999999 * Math.random())})`;
28 cy.loginAs(activeUser);
29 cy.get("[data-cy=side-panel-button]").click();
30 cy.get("[data-cy=side-panel-new-project]").click();
31 cy.get("[data-cy=form-dialog]")
32 .should("contain", "New Project")
34 cy.get("[data-cy=name-field]").within(() => {
35 cy.get("input").type(projName);
38 // Key: Color (IDTAGCOLORS) - Value: Magenta (IDVALCOLORS3)
39 cy.get("[data-cy=form-dialog]").should("not.contain", "Color: Magenta");
40 cy.get("[data-cy=resource-properties-form]").within(() => {
41 cy.get("[data-cy=property-field-key]").within(() => {
42 cy.get("input").type("Color").blur();
44 cy.get("[data-cy=property-field-value]").within(() => {
45 cy.get("input").type("Magenta").blur();
47 cy.get("[data-cy=property-add-btn]").click();
49 cy.get("[data-cy=property-field-value]").within(() => {
50 cy.get("input").type("Pink").blur();
52 cy.get("[data-cy=property-add-btn]").click();
54 cy.get("[data-cy=property-field-value]").within(() => {
55 cy.get("input").type("Yellow").blur();
57 cy.get("[data-cy=property-add-btn]").click();
59 // Confirm proper vocabulary labels are displayed on the UI.
60 cy.get("[data-cy=form-dialog]").should("contain", "Color: Magenta");
61 cy.get("[data-cy=form-dialog]").should("contain", "Color: Pink");
62 cy.get("[data-cy=form-dialog]").should("contain", "Color: Yellow");
64 cy.get("[data-cy=resource-properties-form]").within(() => {
65 cy.get("[data-cy=property-field-key]").within(() => {
66 cy.get("input").focus();
68 cy.get("[data-cy=property-field-key]").should("not.contain", "Color");
71 // Create project and confirm the properties' real values.
72 cy.get("[data-cy=form-submit-btn]").click();
73 cy.get("[data-cy=breadcrumb-last]").should("contain", projName);
74 cy.doRequest("GET", "/arvados/v1/groups", null, {
75 filters: `[["name", "=", "${projName}"], ["group_class", "=", "project"]]`,
80 expect(this.projects).to.have.lengthOf(1);
81 expect(this.projects[0].properties).to.deep.equal(
82 // Pink is not in the test vocab
83 { IDTAGCOLORS: ["IDVALCOLORS3", "Pink", "IDVALCOLORS1"] }
87 // Open project edit via breadcrumbs
88 cy.get("[data-cy=breadcrumbs]").contains(projName).rightclick();
89 cy.get("[data-cy=context-menu]").contains("Edit").click();
90 cy.get("[data-cy=form-dialog]").within(() => {
91 cy.get("[data-cy=resource-properties-list]").within(() => {
92 cy.get("div[role=button]").contains("Color: Magenta");
93 cy.get("div[role=button]").contains("Color: Pink");
94 cy.get("div[role=button]").contains("Color: Yellow");
97 // Add another property
98 cy.get("[data-cy=resource-properties-form]").within(() => {
99 cy.get("[data-cy=property-field-key]").within(() => {
100 cy.get("input").type("Animal").blur();
102 cy.get("[data-cy=property-field-value]").within(() => {
103 cy.get("input").type("Dog").blur();
105 cy.get("[data-cy=property-add-btn]").click();
107 cy.get("[data-cy=form-submit-btn]").click();
108 // Reopen edit via breadcrumbs and verify properties
109 cy.get("[data-cy=breadcrumbs]").contains(projName).rightclick();
110 cy.get("[data-cy=context-menu]").contains("Edit").click();
111 cy.get("[data-cy=form-dialog]").within(() => {
112 cy.get("[data-cy=resource-properties-list]").within(() => {
113 cy.get("div[role=button]").contains("Color: Magenta");
114 cy.get("div[role=button]").contains("Color: Pink");
115 cy.get("div[role=button]").contains("Color: Yellow");
116 cy.get("div[role=button]").contains("Animal: Dog");
121 it("creates a project without and with description", function () {
122 const projName = `Test project (${Math.floor(999999 * Math.random())})`;
123 cy.loginAs(activeUser);
126 cy.get("[data-cy=side-panel-button]").click();
127 cy.get("[data-cy=side-panel-new-project]").click();
128 cy.get("[data-cy=form-dialog]")
129 .should("contain", "New Project")
131 cy.get("[data-cy=name-field]").within(() => {
132 cy.get("input").type(projName);
135 cy.get("[data-cy=form-submit-btn]").click();
136 cy.get("[data-cy=form-dialog]").should("not.exist");
138 const editProjectDescription = (name, type) => {
139 cy.get("[data-cy=side-panel-tree]").contains("Home Projects").click();
140 cy.get("[data-cy=project-panel] tbody tr").contains(name).rightclick({ force: true });
141 cy.get("[data-cy=context-menu]").contains("Edit").click();
142 cy.get("[data-cy=form-dialog]").within(() => {
143 cy.get("div[contenteditable=true]").click().type(type);
144 cy.get("[data-cy=form-submit-btn]").click();
148 const verifyProjectDescription = (name, description) => {
149 cy.doRequest("GET", "/arvados/v1/groups", null, {
150 filters: `[["name", "=", "${name}"], ["group_class", "=", "project"]]`,
155 expect(this.projects).to.have.lengthOf(1);
156 expect(this.projects[0].description).to.equal(description);
161 editProjectDescription(projName, "Test description");
163 // Check description is set
164 verifyProjectDescription(projName, "<p>Test description</p>");
167 editProjectDescription(projName, "{selectall}{backspace}");
169 // Check description is null
170 verifyProjectDescription(projName, null);
172 // Set description to contain whitespace
173 editProjectDescription(projName, "{selectall}{backspace} x");
174 editProjectDescription(projName, "{backspace}");
176 // Check description is null
177 verifyProjectDescription(projName, null);
180 it("creates a project from the context menu in the correct subfolder", function () {
181 const parentProjName = `Test project (${Math.floor(999999 * Math.random())})`;
182 const childProjName = `Test project (${Math.floor(999999 * Math.random())})`;
183 cy.loginAs(activeUser);
186 cy.get("[data-cy=side-panel-button]").click();
187 cy.get("[data-cy=side-panel-new-project]").click();
188 cy.get("[data-cy=form-dialog]")
189 .should("contain", "New Project")
191 cy.get("[data-cy=name-field]").within(() => {
192 cy.get("input").type(parentProjName);
195 cy.get("[data-cy=form-submit-btn]").click();
196 cy.get("[data-cy=form-dialog]").should("not.exist");
200 // Create subproject from context menu
201 cy.get("[data-cy=project-panel] tbody tr").contains(parentProjName).rightclick({ force: true });
202 cy.get("[data-cy=context-menu]").contains("New project").click();
203 cy.get("[data-cy=form-dialog]")
204 .should("contain", "New Project")
206 cy.get("[data-cy=name-field]").within(() => {
207 cy.get("input").type(childProjName);
210 cy.get("[data-cy=form-submit-btn]").click();
212 cy.get("[data-cy=form-dialog]").should("not.exist");
214 // open details panel and check 'owner' field
215 cy.get('[data-cy=multiselect-button]').eq(0).trigger('mouseover');
216 cy.get('body').contains('View details').should('exist')
217 cy.get('[data-cy=multiselect-button]').eq(0).click();
220 cy.get("[data-cy=details-panel-owner]").contains(parentProjName).should("be.visible")
221 cy.get("[data-cy=close-details-btn]").click();
224 it('shows the appropriate buttons in the multiselect toolbar', () => {
226 const msButtonTooltips = [
229 'Copy link to clipboard',
230 'Open with 3rd party client',
241 cy.loginAs(activeUser);
242 const projName = `Test project (${Math.floor(999999 * Math.random())})`;
243 cy.get('[data-cy=side-panel-button]').click();
244 cy.get('[data-cy=side-panel-new-project]').click();
245 cy.get('[data-cy=form-dialog]')
246 .should('contain', 'New Project')
248 cy.get('[data-cy=name-field]').within(() => {
249 cy.get('input').type(projName);
252 cy.get("[data-cy=form-submit-btn]").click();
256 cy.get('[data-cy=data-table-row]').contains(projName).should('exist').parent().parent().parent().click()
258 cy.get('[data-cy=multiselect-button]').should('have.length', msButtonTooltips.length)
259 for (let i = 0; i < msButtonTooltips.length; i++) {
260 cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseover');
261 cy.get('body').contains(msButtonTooltips[i]).should('exist')
262 cy.get('[data-cy=multiselect-button]').eq(i).trigger('mouseout');
266 it("creates new project on home project and then a subproject inside it", function () {
267 const createProject = function (name, parentName) {
268 cy.get("[data-cy=side-panel-button]").click();
269 cy.get("[data-cy=side-panel-new-project]").click();
270 cy.get("[data-cy=form-dialog]")
271 .should("contain", "New Project")
273 cy.get("[data-cy=parent-field]").within(() => {
277 expect(val).to.include(parentName);
280 cy.get("[data-cy=name-field]").within(() => {
281 cy.get("input").type(name);
284 cy.get("[data-cy=form-submit-btn]").click();
287 cy.loginAs(activeUser);
288 cy.goToPath(`/projects/${activeUser.user.uuid}`);
289 cy.get("[data-cy=breadcrumb-first]").should("contain", "Projects");
290 cy.get("[data-cy=breadcrumb-last]").should("not.exist");
291 // Create new project
292 const projName = `Test project (${Math.floor(999999 * Math.random())})`;
293 createProject(projName, "Home project");
294 // Confirm that the user was taken to the newly created thing
295 cy.get("[data-cy=form-dialog]").should("not.exist");
296 cy.get("[data-cy=breadcrumb-first]").should("contain", "Projects");
297 cy.get("[data-cy=breadcrumb-last]").should("contain", projName);
298 // Create a subproject
299 const subProjName = `Test project (${Math.floor(999999 * Math.random())})`;
300 createProject(subProjName, projName);
301 cy.get("[data-cy=form-dialog]").should("not.exist");
302 cy.get("[data-cy=breadcrumb-first]").should("contain", "Projects");
303 cy.get("[data-cy=breadcrumb-last]").should("contain", subProjName);
306 it("attempts to use a preexisting name creating a project", function () {
307 const name = `Test project ${Math.floor(Math.random() * 999999)}`;
308 cy.createGroup(activeUser.token, {
310 group_class: "project",
312 cy.loginAs(activeUser);
313 cy.goToPath(`/projects/${activeUser.user.uuid}`);
315 // Attempt to create new collection with a duplicate name
316 cy.get("[data-cy=side-panel-button]").click();
317 cy.get("[data-cy=side-panel-new-project]").click();
318 cy.get("[data-cy=form-dialog]")
319 .should("contain", "New Project")
321 cy.get("[data-cy=name-field]").within(() => {
322 cy.get("input").type(name);
324 cy.get("[data-cy=form-submit-btn]").click();
326 // Error message should display, allowing editing the name
327 cy.get("[data-cy=form-dialog]")
329 .and("contain", "Project with the same name already exists")
331 cy.get("[data-cy=name-field]").within(() => {
332 cy.get("input").type(" renamed");
334 cy.get("[data-cy=form-submit-btn]").click();
336 cy.get("[data-cy=form-dialog]").should("not.exist");
339 it("navigates to the parent project after trashing the one being displayed", function () {
340 cy.createGroup(activeUser.token, {
341 name: `Test root project ${Math.floor(Math.random() * 999999)}`,
342 group_class: "project",
344 .as("testRootProject")
346 cy.createGroup(activeUser.token, {
347 name: `Test subproject ${Math.floor(Math.random() * 999999)}`,
348 group_class: "project",
349 owner_uuid: this.testRootProject.uuid,
350 }).as("testSubProject");
352 cy.getAll("@testRootProject", "@testSubProject").then(function ([testRootProject, testSubProject]) {
353 cy.loginAs(activeUser);
355 // Go to subproject and trash it.
356 cy.goToPath(`/projects/${testSubProject.uuid}`);
357 cy.get("[data-cy=side-panel-tree]").should("contain", testSubProject.name);
358 cy.get("[data-cy=breadcrumb-last]").should("contain", testSubProject.name).rightclick();
359 cy.get("[data-cy=context-menu]").contains("Move to trash").click();
361 // Confirm that the parent project should be displayed.
362 cy.get("[data-cy=breadcrumb-last]").should("contain", testRootProject.name);
363 cy.url().should("contain", `/projects/${testRootProject.uuid}`);
364 cy.get("[data-cy=side-panel-tree]").should("not.contain", testSubProject.name);
366 // Checks for bugfix #17637.
367 cy.get("[data-cy=not-found-content]").should("not.exist");
368 cy.get("[data-cy=not-found-page]").should("not.exist");
372 it("resets the search box only when navigating out of the current project", function () {
373 const fooProjectNameA = `Test foo project ${Math.floor(Math.random() * 999999)}`;
374 const fooProjectNameB = `Test foo project ${Math.floor(Math.random() * 999999)}`;
375 const barProjectNameA = `Test bar project ${Math.floor(Math.random() * 999999)}`;
377 [fooProjectNameA, fooProjectNameB, barProjectNameA].forEach(projName => {
378 cy.createGroup(activeUser.token, {
380 group_class: "project",
384 cy.loginAs(activeUser);
385 cy.get("[data-cy=project-panel]").should("contain", fooProjectNameA).and("contain", fooProjectNameB).and("contain", barProjectNameA);
387 cy.get("[data-cy=search-input]").type("foo");
388 cy.get("[data-cy=project-panel]").should("contain", fooProjectNameA).and("contain", fooProjectNameB).and("not.contain", barProjectNameA);
390 // Click on the table row to select it, search should remain the same.
391 cy.get(`p:contains(${fooProjectNameA})`).parent().parent().parent().parent().click();
392 cy.get("[data-cy=search-input] input").should("have.value", "foo");
394 // Click to navigate to the project, search should be reset
395 cy.get(`p:contains(${fooProjectNameA})`).click();
396 cy.get("[data-cy=search-input] input").should("not.have.value", "foo");
399 it("navigates to the root project after trashing the parent of the one being displayed", function () {
400 cy.createGroup(activeUser.token, {
401 name: `Test root project ${Math.floor(Math.random() * 999999)}`,
402 group_class: "project",
404 .as("testRootProject")
406 cy.createGroup(activeUser.token, {
407 name: `Test subproject ${Math.floor(Math.random() * 999999)}`,
408 group_class: "project",
409 owner_uuid: this.testRootProject.uuid,
411 .as("testSubProject")
413 cy.createGroup(activeUser.token, {
414 name: `Test sub subproject ${Math.floor(Math.random() * 999999)}`,
415 group_class: "project",
416 owner_uuid: this.testSubProject.uuid,
417 }).as("testSubSubProject");
420 cy.getAll("@testRootProject", "@testSubProject", "@testSubSubProject").then(function ([testRootProject, testSubProject, testSubSubProject]) {
421 cy.loginAs(activeUser);
423 // Go to innermost project and trash its parent.
424 cy.goToPath(`/projects/${testSubSubProject.uuid}`);
425 cy.get("[data-cy=side-panel-tree]").should("contain", testSubSubProject.name);
426 cy.get("[data-cy=breadcrumb-last]").should("contain", testSubSubProject.name);
427 cy.get("[data-cy=side-panel-tree]").contains(testSubProject.name).rightclick();
428 cy.get("[data-cy=context-menu]").contains("Move to trash").click();
430 // Confirm that the trashed project's parent should be displayed.
431 cy.get("[data-cy=breadcrumb-last]").should("contain", testRootProject.name);
432 cy.url().should("contain", `/projects/${testRootProject.uuid}`);
433 cy.get("[data-cy=side-panel-tree]").should("not.contain", testSubProject.name);
434 cy.get("[data-cy=side-panel-tree]").should("not.contain", testSubSubProject.name);
436 // Checks for bugfix #17637.
437 cy.get("[data-cy=not-found-content]").should("not.exist");
438 cy.get("[data-cy=not-found-page]").should("not.exist");
442 it("clears search input when changing project", () => {
443 cy.createGroup(activeUser.token, {
444 name: `Test root project ${Math.floor(Math.random() * 999999)}`,
445 group_class: "project",
448 .then(testProject1 => {
449 cy.shareWith(adminUser.token, activeUser.user.uuid, testProject1.uuid, "can_write");
452 cy.getAll("@testProject1").then(function ([testProject1]) {
453 cy.loginAs(activeUser);
455 cy.get("[data-cy=side-panel-tree]").contains(testProject1.name).click();
457 cy.get("[data-cy=search-input] input").type("test123");
459 cy.get("[data-cy=side-panel-tree]").contains("Projects").click();
461 cy.get("[data-cy=search-input] input").should("not.have.value", "test123");
465 it("opens advanced popup for project with username", () => {
466 const projectName = `Test project ${Math.floor(Math.random() * 999999)}`;
468 cy.createGroup(adminUser.token, {
470 group_class: "project",
471 }).as("mainProject");
473 cy.getAll("@mainProject").then(function ([mainProject]) {
474 cy.loginAs(adminUser);
476 cy.get("[data-cy=side-panel-tree]").contains("Groups").click();
478 cy.get("[data-cy=uuid]")
482 cy.createLink(adminUser.token, {
484 link_class: "permission",
485 head_uuid: mainProject.uuid,
489 cy.createLink(adminUser.token, {
491 link_class: "permission",
492 head_uuid: mainProject.uuid,
493 tail_uuid: activeUser.user.uuid,
496 cy.get("[data-cy=side-panel-tree]").contains("Projects").click();
498 cy.get("main").contains(projectName).rightclick();
500 cy.get("[data-cy=context-menu]").contains("API Details").click();
502 cy.get("[role=tablist]").contains("METADATA").click();
504 cy.get("td").contains(uuid).should("exist");
506 cy.get("td").contains(activeUser.user.uuid).should("exist");
511 describe("Frozen projects", () => {
513 cy.createGroup(activeUser.token, {
514 name: `Main project ${Math.floor(Math.random() * 999999)}`,
515 group_class: "project",
516 }).as("mainProject");
518 cy.createGroup(adminUser.token, {
519 name: `Admin project ${Math.floor(Math.random() * 999999)}`,
520 group_class: "project",
523 .then(mainProject => {
524 cy.shareWith(adminUser.token, activeUser.user.uuid, mainProject.uuid, "can_write");
527 cy.get("@mainProject").then(mainProject => {
528 cy.createGroup(adminUser.token, {
529 name: `Sub project ${Math.floor(Math.random() * 999999)}`,
530 group_class: "project",
531 owner_uuid: mainProject.uuid,
534 cy.createCollection(adminUser.token, {
535 name: `Main collection ${Math.floor(Math.random() * 999999)}`,
536 owner_uuid: mainProject.uuid,
537 manifest_text: "./subdir 37b51d194a7513e45b56f6524f2d51f2+3 0:3:foo\n. 37b51d194a7513e45b56f6524f2d51f2+3 0:3:bar\n",
538 }).as("mainCollection");
542 it("should be able to freeze own project", () => {
543 cy.getAll("@mainProject").then(([mainProject]) => {
544 cy.loginAs(activeUser);
546 cy.get("[data-cy=project-panel]").contains(mainProject.name).rightclick();
548 cy.get("[data-cy=context-menu]").contains("Freeze").click();
550 cy.get("[data-cy=project-panel]").contains(mainProject.name).rightclick();
552 cy.get("[data-cy=context-menu]").contains("Freeze").should("not.exist");
556 it("should not be able to modify items within the frozen project", () => {
557 cy.getAll("@mainProject", "@mainCollection").then(([mainProject, mainCollection]) => {
558 cy.loginAs(activeUser);
560 cy.get("[data-cy=project-panel]").contains(mainProject.name).rightclick();
562 cy.get("[data-cy=context-menu]").contains("Freeze").click();
564 cy.get("[data-cy=project-panel]").contains(mainProject.name).click();
566 cy.get("[data-cy=project-panel]").contains(mainCollection.name).rightclick();
568 cy.get("[data-cy=context-menu]").contains("Move to trash").should("not.exist");
572 it("should be able to freeze not owned project", () => {
573 cy.getAll("@adminProject").then(([adminProject]) => {
574 cy.loginAs(activeUser);
576 cy.get("[data-cy=side-panel-tree]").contains("Shared with me").click();
578 cy.get("main").contains(adminProject.name).rightclick();
580 cy.get("[data-cy=context-menu]").contains("Freeze").should("not.exist");
584 it("should be able to unfreeze project if user is an admin", () => {
585 cy.getAll("@adminProject").then(([adminProject]) => {
586 cy.loginAs(adminUser);
588 cy.get("main").contains(adminProject.name).rightclick();
590 cy.get("[data-cy=context-menu]").contains("Freeze").click();
594 cy.get("main").contains(adminProject.name).rightclick();
596 cy.get("[data-cy=context-menu]").contains("Unfreeze").click();
598 cy.get("main").contains(adminProject.name).rightclick();
600 cy.get("[data-cy=context-menu]").contains("Freeze").should("exist");
605 // The following test is enabled on Electron only, as Chromium and Firefox
606 // require permissions to access the clipboard.
607 it("copies project URL to clipboard", { browser: 'electron' }, () => {
608 const projectName = `Test project (${Math.floor(999999 * Math.random())})`;
610 cy.loginAs(activeUser);
611 cy.get("[data-cy=side-panel-button]").click();
612 cy.get("[data-cy=side-panel-new-project]").click();
613 cy.get("[data-cy=form-dialog]")
614 .should("contain", "New Project")
616 cy.get("[data-cy=name-field]").within(() => {
617 cy.get("input").type(projectName);
619 cy.get("[data-cy=form-submit-btn]").click();
621 cy.get("[data-cy=form-dialog]").should("not.exist");
622 cy.get("[data-cy=snackbar]").contains("created");
623 cy.get("[data-cy=snackbar]").should("not.exist");
624 cy.get("[data-cy=side-panel-tree]").contains("Projects").click();
626 cy.get("[data-cy=project-panel]").contains(projectName).should("be.visible").rightclick();
627 cy.get("[data-cy=context-menu]").contains("Copy link to clipboard").click();
628 cy.window().then(win =>
629 win.navigator.clipboard.readText().then(text => {
630 expect(text).to.match(/https\:\/\/127\.0\.0\.1\:[0-9]+\/projects\/[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{15}/);
635 it("sorts displayed items correctly", () => {
636 cy.loginAs(activeUser);
638 cy.get('[data-cy=project-panel] button[title="Select columns"]').click();
639 cy.get("div[role=presentation] ul > div[role=button]").contains("Date Created").click();
640 cy.get("div[role=presentation] ul > div[role=button]").contains("Trash at").click();
641 cy.get("div[role=presentation] ul > div[role=button]").contains("Delete at").click();
642 cy.get("div[role=presentation] > div[aria-hidden=true]").click();
644 cy.intercept({ method: "GET", url: "**/arvados/v1/groups/*/contents*" }).as("filteredQuery");
648 asc: "collections.name asc,groups.name asc,workflows.name asc,created_at desc",
649 desc: "collections.name desc,groups.name desc,workflows.name desc,created_at desc",
652 name: "Last Modified",
653 asc: "collections.modified_at asc,groups.modified_at asc,workflows.modified_at asc,created_at desc",
654 desc: "collections.modified_at desc,groups.modified_at desc,workflows.modified_at desc,created_at desc",
657 name: "Date Created",
658 asc: "collections.created_at asc,groups.created_at asc,workflows.created_at asc,created_at desc",
659 desc: "collections.created_at desc,groups.created_at desc,workflows.created_at desc,created_at desc",
663 asc: "collections.trash_at asc,groups.trash_at asc,workflows.trash_at asc,created_at desc",
664 desc: "collections.trash_at desc,groups.trash_at desc,workflows.trash_at desc,created_at desc",
668 asc: "collections.delete_at asc,groups.delete_at asc,workflows.delete_at asc,created_at desc",
669 desc: "collections.delete_at desc,groups.delete_at desc,workflows.delete_at desc,created_at desc",
672 cy.get("[data-cy=project-panel] table thead th").contains(test.name).click();
673 cy.wait("@filteredQuery").then(interception => {
674 const searchParams = new URLSearchParams(new URL(interception.request.url).search);
675 expect(searchParams.get("order")).to.eq(test.asc);
677 cy.get("[data-cy=project-panel] table thead th").contains(test.name).click();
678 cy.wait("@filteredQuery").then(interception => {
679 const searchParams = new URLSearchParams(new URL(interception.request.url).search);
680 expect(searchParams.get("order")).to.eq(test.desc);