Skip to content

Commit

Permalink
Merge pull request #37 from lenneTech/feat/base-components-cypress-at…
Browse files Browse the repository at this point in the history
…tributes

feat: added cypress attribute data to base components
  • Loading branch information
pascal-klesse authored Aug 21, 2023
2 parents e5609d6 + e4d3e0e commit e617f29
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
[ngClass]="{ 'is-invalid': control?.invalid && control?.touched }"
(keyup.enter)="enterEvent()"
[attr.aria-describedby]="id + 'eye-button'"
[attr.data-cy]="name"
/>
<button
class="btn btn-outline-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<div class="tag-wrapper" *ngIf="control?.value">
<div class="tag" *ngFor="let tag of control?.value">
{{ getReadableTag(tag) }}
<span (click)="removeTag(tag)"><i class="bi bi-x-circle"></i></span>
<span (click)="removeTag(tag)" data-cy="input-tags-item-remove"><i class="bi bi-x-circle"></i></span>
</div>
</div>
<input [formControl]="control" hidden />
Expand All @@ -24,6 +24,7 @@
type="text"
class="form-control"
(keyup)="enterKey($event)"
[attr.data-cy]="'input-tags-field'"
/>

<div class="tag-options" *ngIf="options && selectedElement">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
[control]="form.get('password')"
></base-input>
<div class="d-grid gap-2 text-center">
<button class="btn btn-primary" (click)="submit()" *ngIf="!loading">Einloggen</button>
<button class="btn btn-primary" (click)="submit()" data-cy="login-submit" *ngIf="!loading">Einloggen</button>
<button class="btn btn-primary" type="button" disabled *ngIf="loading">
<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true"></span>
Loading...
Expand Down

0 comments on commit e617f29

Please sign in to comment.