Skip to content

Commit

Permalink
test: remove user from a project (DEV-2328)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed Jan 28, 2025
1 parent 1b5a762 commit 40f37fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 169 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ <h3 class="mat-body subtitle">
</app-sort-button>
</span>
<h2 class="mat-headline-6">
<span *ngIf="projectUuid">{{ list.length | i18nPlural : itemPluralMapping['member'] }}</span>
<span *ngIf="!projectUuid">{{ list.length | i18nPlural : itemPluralMapping['user'] }}</span>
<span *ngIf="projectUuid" data-cy="member-count"
>{{ list.length | i18nPlural : itemPluralMapping['member'] }}</span
>
<span *ngIf="!projectUuid" data-cy="user-count"
>{{ list.length | i18nPlural : itemPluralMapping['user'] }}</span
>
</h2>
<span class="fill-remaining-space"></span>
<span class="app-toolbar-action button right" *ngIf="status && createNew && (isSysAdmin$ | async)">
Expand Down Expand Up @@ -78,7 +82,11 @@ <h5 class="mat-subtitle-1 info-names">

<!-- action: menu with edit, remove, etc. -->
<td class="table-action">
<button mat-icon-button [matMenuTriggerFor]="projectUserMenu" [disabled]="disableMenu$ | async">
<button
mat-icon-button
[matMenuTriggerFor]="projectUserMenu"
data-cy="user-menu"
[disabled]="disableMenu$ | async">
<mat-icon>more_horiz</mat-icon>
</button>
<mat-menu #projectUserMenu="matMenu" xPosition="before" class="menu">
Expand Down Expand Up @@ -124,6 +132,7 @@ <h5 class="mat-subtitle-1 info-names">
<!-- remove user from project; only in project view -->
<button
mat-menu-item
data-cy="remove-member-button"
*ngIf="projectUuid"
(click)="
askToRemoveFromProject(user)
Expand Down

This file was deleted.

0 comments on commit 40f37fd

Please sign in to comment.