11describe ( 'Contact Page' , function ( ) {
2- var env = 'https ://openforge-dev.firebaseapp.com ' ;
2+ var env = 'http ://localhost:3333 ' ;
33 beforeEach ( ( ) => {
44 cy . visit ( env + '/contact' )
55 cy . get ( 'button[type=submit]' ) . as ( 'submitBtn' )
@@ -9,41 +9,50 @@ describe('Contact Page', function () {
99 it ( 'Home on nav Bar should redirect to home page' , function ( ) {
1010 cy . get ( '.navbar' ) . contains ( 'Home' ) . click ( )
1111 cy . url ( ) . should ( 'include' , '/' )
12+ cy . contains ( 'Creating Digital Experiences' )
1213 } )
1314 it ( 'Services should drop down to display Development and navigate to developer page' , function ( ) {
1415 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
1516 cy . get ( '.navbar' ) . contains ( 'Development' ) . click ( )
1617 cy . url ( ) . should ( 'include' , '/app-developer' )
18+ cy . contains ( 'Your Go-To App Developer' )
19+
1720 } )
1821 it ( 'Services should drop down to display UI/UX Design and navigate to design page' , function ( ) {
1922 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
2023 cy . get ( '.navbar' ) . contains ( 'UX/UI Design' ) . click ( )
2124 cy . url ( ) . should ( 'include' , '/app-designer' )
25+ cy . contains ( 'UI/UX App Designer' )
2226 } )
2327 it ( 'Services should drop down to display Consulting and navigate to consulting page' , function ( ) {
2428 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
2529 cy . get ( '.navbar' ) . contains ( 'Consulting' ) . click ( )
2630 cy . url ( ) . should ( 'include' , '/startup-consulting' )
31+ cy . contains ( 'Consulting for all Industries' )
2732 } )
2833 it ( 'About should drop down to display Meet the team and navigate to about page' , function ( ) {
2934 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
3035 cy . get ( '.navbar' ) . contains ( 'Meet the team' ) . click ( )
3136 cy . url ( ) . should ( 'include' , '/about' )
37+ cy . contains ( 'We Are Passionate About Technology and Design' )
3238 } )
3339 it ( 'About should drop down to display Juntoscope Case Study and navigate to juntoscope page' , function ( ) {
3440 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
3541 cy . get ( '.navbar' ) . contains ( 'Juntoscope Case Study' ) . click ( )
3642 cy . url ( ) . should ( 'include' , '/juntoscope' )
43+ cy . contains ( 'Case Study' )
3744 } )
3845 it ( 'About should drop down to display Toolbox and navigate to Toolbox page' , function ( ) {
3946 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
4047 cy . get ( '.navbar' ) . contains ( 'Toolbox' ) . click ( )
4148 cy . url ( ) . should ( 'include' , '/toolbox' )
49+ cy . contains ( 'Here are some of the tools we use' )
4250 } )
4351 it ( 'About should drop down to display PWA White Paper and navigate to PWA White Paper page' , function ( ) {
4452 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
4553 cy . get ( '.navbar' ) . contains ( 'PWA White Paper' ) . click ( )
4654 cy . url ( ) . should ( 'include' , '/resources/pwa-white-paper' )
55+ cy . contains ( 'What is a PWA and is it right for you?' )
4756 } )
4857 } )
4958 describe ( 'Nav Bar Navigation (Mobile)' , function ( ) {
@@ -63,59 +72,66 @@ describe('Contact Page', function () {
6372 cy . get ( '.navbar-toggler' ) . click ( )
6473 cy . get ( '.navbar' ) . contains ( 'Home' ) . click ( )
6574 cy . url ( ) . should ( 'include' , '/' )
75+ cy . contains ( 'Creating Digital Experiences' )
6676 } )
6777 it ( 'Services should drop down to display Development and navigate to developer page' , function ( ) {
6878 cy . viewport ( 960 , 600 )
6979 cy . get ( '.navbar-toggler' ) . click ( )
7080 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
7181 cy . get ( '.navbar' ) . contains ( 'Development' ) . click ( )
7282 cy . url ( ) . should ( 'include' , '/app-developer' )
83+ cy . contains ( 'Your Go-To App Developer' )
7384 } )
7485 it ( 'Services should drop down to display UI/UX Design and navigate to design page' , function ( ) {
7586 cy . viewport ( 960 , 600 )
7687 cy . get ( '.navbar-toggler' ) . click ( )
7788 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
7889 cy . get ( '.navbar' ) . contains ( 'UX/UI Design' ) . click ( )
7990 cy . url ( ) . should ( 'include' , '/app-designer' )
91+ cy . contains ( 'UI/UX App Designer' )
8092 } )
8193 it ( 'Services should drop down to display Consulting and navigate to consulting page' , function ( ) {
8294 cy . viewport ( 960 , 600 )
8395 cy . get ( '.navbar-toggler' ) . click ( )
8496 cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
8597 cy . get ( '.navbar' ) . contains ( 'Consulting' ) . click ( )
8698 cy . url ( ) . should ( 'include' , '/startup-consulting' )
99+ cy . contains ( 'Consulting for all Industries' )
87100 } )
88101 it ( 'About should drop down to display Meet the team and navigate to about page' , function ( ) {
89102 cy . viewport ( 960 , 600 )
90103 cy . get ( '.navbar-toggler' ) . click ( )
91104 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
92105 cy . get ( '.navbar' ) . contains ( 'Meet the team' ) . click ( )
93106 cy . url ( ) . should ( 'include' , '/about' )
107+ cy . contains ( 'We Are Passionate About Technology and Design' )
94108 } )
95109 it ( 'About should drop down to display Juntoscope Case Study and navigate to juntoscope page' , function ( ) {
96110 cy . viewport ( 960 , 600 )
97111 cy . get ( '.navbar-toggler' ) . click ( )
98112 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
99113 cy . get ( '.navbar' ) . contains ( 'Juntoscope Case Study' ) . click ( )
100114 cy . url ( ) . should ( 'include' , '/juntoscope' )
115+ cy . contains ( 'Case Study' )
101116 } )
102117 it ( 'About should drop down to display Toolbox and navigate to Toolbox page' , function ( ) {
103118 cy . viewport ( 960 , 600 )
104119 cy . get ( '.navbar-toggler' ) . click ( )
105120 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
106121 cy . get ( '.navbar' ) . contains ( 'Toolbox' ) . click ( )
107122 cy . url ( ) . should ( 'include' , '/toolbox' )
123+ cy . contains ( 'Here are some of the tools we use' )
108124 } )
109125 it ( 'About should drop down to display PWA White Paper and navigate to PWA White Paper page' , function ( ) {
110126 cy . viewport ( 960 , 600 )
111127 cy . get ( '.navbar-toggler' ) . click ( )
112128 cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
113129 cy . get ( '.navbar' ) . contains ( 'PWA White Paper' ) . click ( )
114130 cy . url ( ) . should ( 'include' , '/resources/pwa-white-paper' )
131+ cy . contains ( 'What is a PWA and is it right for you?' )
115132 } )
116133 } )
117134
118-
119135 describe ( 'Header' , function ( ) {
120136 it ( 'Header should display with appropriate text content within it' , function ( ) {
121137 const h2Content = 'Let\'s Work Together'
@@ -155,7 +171,6 @@ describe('Contact Page', function () {
155171 it ( 'Should show a success message on submit when all form values have been filled out' , function ( ) {
156172 cy . wait ( 2000 )
157173 cy . contains ( 'Thank you' )
158- //This test will randomly fail, look into it.
159174 } )
160175
161176 it ( 'All fields should be clear after successful form submission' , function ( ) {
@@ -179,15 +194,15 @@ describe('Contact Page', function () {
179194 cy . url ( ) . should ( 'include' , '/service-level-agreement' )
180195 } )
181196 it ( 'Navigate to Developer page' , function ( ) {
182- cy . contains ( 'I\'m a developer ' ) . click ( )
197+ cy . contains ( 'I\'M A DEVELOPER ' ) . click ( )
183198 cy . url ( ) . should ( 'include' , '/opportunities/develop' )
184199 } )
185200 it ( 'Navigate to Design page' , function ( ) {
186- cy . contains ( 'I\'m a designer ' ) . click ( )
201+ cy . contains ( 'I\'M A DESIGNER ' ) . click ( )
187202 cy . url ( ) . should ( 'include' , '/opportunities/design' )
188203 } )
189204 it ( 'Navigates to StartupJunto Registration Page' , function ( ) {
190- cy . contains ( 'Register Today ' ) . click ( )
205+ cy . contains ( 'JOIN US ' ) . click ( )
191206 } )
192207 it ( 'Navigates to OpenForge Twitter' , function ( ) {
193208 cy . contains ( '@OpenForge_US' ) . click ( )
@@ -205,5 +220,4 @@ describe('Contact Page', function () {
205220 //cy.contains('hello@openforge.io').click()
206221 //})
207222 } )
208-
209223} )
0 commit comments