Skip to content

Commit ee73046

Browse files
Copilotrenemadsen
andcommitted
Add visible debug markers for Cypress e2e troubleshooting
- Added yellow debug info box showing isAdmin, isFirstUser, assignedSiteForm status, and data flags - Added light blue debug marker in General tab to confirm tab rendering - Added light green debug marker in GeneralTabComponent to confirm component rendering - These visual markers will help identify what's rendering in Cypress e2e test mp4 videos - Can be removed once issue is identified and fixed Co-authored-by: renemadsen <[email protected]>
1 parent 2d9e394 commit ee73046

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/assigned-site/assigned-site-dialog.component.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<div mat-dialog-title>{{ data.siteName }}</div>
22
<div mat-dialog-content>
3+
<!-- DEBUG: Dialog content started -->
4+
<div id="debug-dialog-content-start" style="display:none;">Dialog content rendering</div>
5+
<div id="debug-values" style="background: yellow; padding: 10px; margin: 10px 0;">
6+
<strong>DEBUG INFO:</strong><br>
7+
isAdmin: {{ isAdmin }}<br>
8+
isFirstUser: {{ isFirstUser }}<br>
9+
assignedSiteForm exists: {{ assignedSiteForm ? 'YES' : 'NO' }}<br>
10+
data.useOnlyPlanHours: {{ data.useOnlyPlanHours }}<br>
11+
data.useGoogleSheetAsDefault: {{ data.useGoogleSheetAsDefault }}<br>
12+
data.autoBreakCalculationActive: {{ data.autoBreakCalculationActive }}<br>
13+
</div>
314
<mat-tab-group
415
dynamicHeight="false"
516
>
17+
<!-- DEBUG: Tab group started -->
18+
<div id="debug-tab-group-start" style="display:none;">Tab group rendering</div>
619
<mat-tab label="{{'General' | translate }}" >
20+
<!-- DEBUG: General tab started -->
21+
<div id="debug-general-tab" style="background: lightblue; padding: 5px;">DEBUG: General Tab Content</div>
722
<app-assigned-site-general-tab
823
[data]="data"
924
[assignedSiteForm]="assignedSiteForm"

eform-client/src/app/plugins/modules/time-planning-pn/components/plannings/time-planning-actions/assigned-site/tabs/general-tab.component.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<div [formGroup]="assignedSiteForm" *ngIf="assignedSiteForm">
2+
<div id="debug-general-tab-component" style="background: lightgreen; padding: 10px; margin: 10px 0;">
3+
<strong>DEBUG: GeneralTabComponent Rendering</strong><br>
4+
Form exists: {{ assignedSiteForm ? 'YES' : 'NO' }}<br>
5+
isFirstUser: {{ isFirstUser }}<br>
6+
isAdmin: {{ isAdmin }}<br>
7+
data.resigned: {{ data.resigned }}
8+
</div>
29
<div class="d-flex flex-row" *ngIf="!data.resigned && isFirstUser">
310
<!-- data.useGoogleSheetAsDefault -->
411
<mat-checkbox class="p-1"

0 commit comments

Comments
 (0)