File tree Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Expand file tree Collapse file tree 4 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,22 @@ describe('Home Page', () => {
494
494
expect ( latestSyncStatusText ) . not . toBe ( `Last Sync: In progress` ) ;
495
495
} ) ;
496
496
497
+ it ( 'should display Applications button' , async ( ) => {
498
+ const applicationButton = await page . $ ( '#application-button' ) ;
499
+ expect ( applicationButton ) . toBeTruthy ( ) ;
500
+ const applicationButtonHref = await page . evaluate (
501
+ ( el ) => el . getAttribute ( 'href' ) ,
502
+ applicationButton ,
503
+ ) ;
504
+ expect ( applicationButtonHref ) . toBe ( '/applications' ) ;
505
+ const applicationButtonText = await page . evaluate (
506
+ ( el ) => el . innerText ,
507
+ applicationButton ,
508
+ ) ;
509
+ const trimmedApplicationButtonText = applicationButtonText . trim ( ) ;
510
+ expect ( trimmedApplicationButtonText ) . toBe ( 'Applications' ) ;
511
+ } ) ;
512
+
497
513
it ( 'should close hamburger menu on clicking anywhere on the screen except the menu' , async ( ) => {
498
514
await page . setViewport ( { width : 970 , height : 1800 } ) ;
499
515
await page . goto ( 'http://localhost:8000/index.html' ) ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ <h1>RDS Join Applications</h1>
20
20
21
21
< img
22
22
class ="funnel-icon "
23
- src ="/taskRequests /assets/funnel.svg "
23
+ src ="/task-requests /assets/funnel.svg "
24
24
alt ="funnel icon "
25
25
/>
26
26
</ button >
Original file line number Diff line number Diff line change @@ -84,6 +84,10 @@ function openApplicationDetails(application) {
84
84
username : application . biodata . firstName ,
85
85
id : application . id ,
86
86
applicationDetails : [
87
+ {
88
+ title : 'Status' ,
89
+ description : application . status ,
90
+ } ,
87
91
{
88
92
title : 'Introduction' ,
89
93
description : application . intro . introduction ,
Original file line number Diff line number Diff line change 149
149
</ a >
150
150
< a class ="action-button " href ="/groups/index.html "> Discord Groups </ a >
151
151
< a class ="action-button " href ="/standup/index.html "> Standup Updates</ a >
152
+ < a
153
+ id ="application-button "
154
+ href ="/applications "
155
+ class ="action-button element-display-remove "
156
+ >
157
+ Applications
158
+ </ a >
152
159
< div class ="button-container element-display-remove " id ="sync-repo-div ">
153
160
< button id ="repo-sync-button " class ="action-button ">
154
161
< span class ="spinner "> </ span >
You can’t perform that action at this time.
0 commit comments