File tree Expand file tree Collapse file tree 2 files changed +21
-9
lines changed
Expand file tree Collapse file tree 2 files changed +21
-9
lines changed Original file line number Diff line number Diff line change 33describe ( "Greetings API" , ( ) => {
44 it ( "should display a greeting" , ( ) => {
55 cy . visit ( "/" ) ;
6- cy . get ( "h1" ) . should ( "contain" , "Greetings Daggernauts " ) ;
6+ cy . get ( "h1" ) . should ( "contain" , "Greetings Halifax! " ) ;
77 } ) ;
88
99 it ( "should change the greeting when the button is clicked" , ( ) => {
1010 cy . visit ( "/" ) ;
1111 cy . get ( "#greetingDisplay" ) . should (
1212 "contain" ,
13- "Click the button to see a greeting!" ,
13+ "Click the button to see a Maritime greeting!" ,
1414 ) ;
1515 cy . get ( "#randomGreetingButton" ) . click ( ) ;
1616 cy . get ( "#greetingDisplay" ) . should (
1717 "not.contain" ,
18- "Click the button to see a greeting!" ,
18+ "Click the button to see a Maritime greeting!" ,
1919 ) ;
2020 } ) ;
2121} ) ;
Original file line number Diff line number Diff line change 33< head >
44 < meta charset ="UTF-8 ">
55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6- < title > Greetings App </ title >
6+ < title > Halifax Harbour Greetings </ title >
77 < link href ="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css " rel ="stylesheet ">
8+ < style >
9+ .maritime-gradient {
10+ background : linear-gradient (135deg , # 1e3a8a 0% , # 0369a1 50% , # 059669 100% );
11+ }
12+ .harbor-blue {
13+ background-color : # 1e40af ;
14+ }
15+ .lighthouse-beacon {
16+ animation : pulse 2s infinite;
17+ }
18+ </ style >
819</ head >
9- < body class ="bg-purple-900 text-white font-sans flex flex-col items-center justify-center min-h-screen ">
20+ < body class ="maritime-gradient text-white font-sans flex flex-col items-center justify-center min-h-screen ">
1021 < div class ="container mx-auto px-4 py-8 max-w-screen-md ">
11- < h1 class ="text-3xl font-bold mb-4 "> Greetings Daggernauts</ h1 >
12- < div id ="greetingDisplay " class ="greeting bg-purple-700 rounded shadow p-4 min-h-20 flex items-center justify-center ">
13- Click the button to see a greeting!
22+ < h1 class ="text-3xl font-bold mb-2 "> 🌊 Halifax Harbour Greetings ⚓</ h1 >
23+ < p class ="text-blue-200 mb-4 text-center "> Welcome to the Atlantic's finest port city!</ p >
24+ < div id ="greetingDisplay " class ="greeting harbor-blue rounded-lg shadow-lg p-6 min-h-20 flex items-center justify-center border-2 border-blue-300 ">
25+ Click the button to receive a Maritime welcome!
1426 </ div >
15- < button id ="randomGreetingButton " class ="bg-purple-500 hover:bg-purple-400 text-white font-bold py-2 px-4 rounded mt-4 " > 👋 </ button >
27+ < button id ="randomGreetingButton " class ="bg-teal-600 hover:bg-teal-500 text-white font-bold py-3 px-6 rounded-lg mt-4 lighthouse-beacon shadow-lg transition-all duration-200 hover:shadow-xl " > 🦞 Ahoy! </ button >
1628 </ div >
1729
1830 < script >
You can’t perform that action at this time.
0 commit comments