@@ -20,6 +20,9 @@ describe('Push Details — Tabs & Content Rendering', () => {
2020 password : 'testuser123' ,
2121 email : 'pushdetails_testuser@example.com' ,
2222 gitAccount : 'pushdetails_testuser' ,
23+ // Git credentials must match a user on the git server for cy.createPush() to work
24+ gitUsername : 'testuser' ,
25+ gitPassword : 'user123' ,
2326 } ;
2427
2528 const approverUser = {
@@ -61,7 +64,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
6164 // --- 1.1 Pending push shows Pending status ---
6265 it ( '1.1 — Pending push shows Pending status with action buttons' , function ( ) {
6366 const suffix = `pending-${ Date . now ( ) } ` ;
64- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
67+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
6568
6669 cy . login ( 'admin' , 'admin' ) ;
6770 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -78,7 +81,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
7881 // --- 1.2 Card body renders info fields with correct links ---
7982 it ( '1.2 — Card body renders Timestamp, Remote Head, Commit SHA, Repository, Branch' , function ( ) {
8083 const suffix = `info-${ Date . now ( ) } ` ;
81- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
84+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
8285
8386 cy . login ( 'admin' , 'admin' ) ;
8487 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -99,7 +102,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
99102 // --- 1.3 Commits tab renders commit data table ---
100103 it ( '1.3 — Commits tab renders commit data table with correct columns' , function ( ) {
101104 const suffix = `commits-${ Date . now ( ) } ` ;
102- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
105+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
103106
104107 cy . login ( 'admin' , 'admin' ) ;
105108 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -117,7 +120,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
117120 // --- 1.4 Changes tab renders diff content ---
118121 it ( '1.4 — Changes tab renders diff content via diff2html' , function ( ) {
119122 const suffix = `changes-${ Date . now ( ) } ` ;
120- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
123+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
121124
122125 cy . login ( 'admin' , 'admin' ) ;
123126 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -133,7 +136,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
133136 // --- 1.5 Steps tab renders steps timeline with summary ---
134137 it ( '1.5 — Steps tab renders steps timeline with summary chips' , function ( ) {
135138 const suffix = `steps-${ Date . now ( ) } ` ;
136- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
139+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
137140
138141 cy . login ( 'admin' , 'admin' ) ;
139142 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -155,7 +158,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
155158 // --- 1.6 Steps accordions expand and show content/logs ---
156159 it ( '1.6 — Steps accordions expand and show content/logs' , function ( ) {
157160 const suffix = `accordion-${ Date . now ( ) } ` ;
158- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
161+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
159162
160163 cy . login ( 'admin' , 'admin' ) ;
161164 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -179,7 +182,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
179182 // --- 1.7 Rejected push shows rejection info with reason ---
180183 it ( '1.7 — Rejected push shows rejection info with reason' , function ( ) {
181184 const suffix = `reject-${ Date . now ( ) } ` ;
182- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
185+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
183186
184187 cy . login ( approverUser . username , approverUser . password ) ;
185188 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -211,7 +214,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
211214 // --- 1.8 Approved push shows attestation info ---
212215 it ( '1.8 — Approved push shows attestation info' , function ( ) {
213216 const suffix = `approve-${ Date . now ( ) } ` ;
214- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
217+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
215218
216219 cy . login ( approverUser . username , approverUser . password ) ;
217220 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -263,7 +266,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
263266 // --- 1.10 Canceled push shows Canceled status ---
264267 it ( '1.10 — Canceled push shows Canceled status' , function ( ) {
265268 const suffix = `cancel-${ Date . now ( ) } ` ;
266- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
269+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
267270
268271 cy . login ( testUser . username , testUser . password ) ;
269272 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
@@ -286,7 +289,7 @@ describe('Push Details — Tabs & Content Rendering', () => {
286289 // --- 1.11 Push details page navigates back to push list after action ---
287290 it ( '1.11 — Action buttons navigate back to push list after completing action' , function ( ) {
288291 const suffix = `nav-${ Date . now ( ) } ` ;
289- cy . createPush ( testUser . username , testUser . password , testUser . email , suffix ) . as ( 'pushId' ) ;
292+ cy . createPush ( testUser . gitUsername , testUser . gitPassword , testUser . email , suffix ) . as ( 'pushId' ) ;
290293
291294 cy . login ( testUser . username , testUser . password ) ;
292295 cy . visit ( `/dashboard/push/${ this . pushId } ` ) ;
0 commit comments