@@ -5,6 +5,117 @@ describe('Contact Page', function () {
55 cy . get ( 'button[type=submit]' ) . as ( 'submitBtn' )
66 } )
77
8+ describe ( 'Nav Bar Navigation (Desktop)' , function ( ) {
9+ it ( 'Home on nav Bar should redirect to home page' , function ( ) {
10+ cy . get ( '.navbar' ) . contains ( 'Home' ) . click ( )
11+ cy . url ( ) . should ( 'include' , '/' )
12+ } )
13+ it ( 'Services should drop down to display Development and navigate to developer page' , function ( ) {
14+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
15+ cy . get ( '.navbar' ) . contains ( 'Development' ) . click ( )
16+ cy . url ( ) . should ( 'include' , '/app-developer' )
17+ } )
18+ it ( 'Services should drop down to display UI/UX Design and navigate to design page' , function ( ) {
19+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
20+ cy . get ( '.navbar' ) . contains ( 'UX/UI Design' ) . click ( )
21+ cy . url ( ) . should ( 'include' , '/app-designer' )
22+ } )
23+ it ( 'Services should drop down to display Consulting and navigate to consulting page' , function ( ) {
24+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
25+ cy . get ( '.navbar' ) . contains ( 'Consulting' ) . click ( )
26+ cy . url ( ) . should ( 'include' , '/startup-consulting' )
27+ } )
28+ it ( 'About should drop down to display Meet the team and navigate to about page' , function ( ) {
29+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
30+ cy . get ( '.navbar' ) . contains ( 'Meet the team' ) . click ( )
31+ cy . url ( ) . should ( 'include' , '/about' )
32+ } )
33+ it ( 'About should drop down to display Juntoscope Case Study and navigate to juntoscope page' , function ( ) {
34+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
35+ cy . get ( '.navbar' ) . contains ( 'Juntoscope Case Study' ) . click ( )
36+ cy . url ( ) . should ( 'include' , '/juntoscope' )
37+ } )
38+ it ( 'About should drop down to display Toolbox and navigate to Toolbox page' , function ( ) {
39+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
40+ cy . get ( '.navbar' ) . contains ( 'Toolbox' ) . click ( )
41+ cy . url ( ) . should ( 'include' , '/toolbox' )
42+ } )
43+ it ( 'About should drop down to display PWA White Paper and navigate to PWA White Paper page' , function ( ) {
44+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
45+ cy . get ( '.navbar' ) . contains ( 'PWA White Paper' ) . click ( )
46+ cy . url ( ) . should ( 'include' , '/resources/pwa-white-paper' )
47+ } )
48+ } )
49+ describe ( 'Nav Bar Navigation (Mobile)' , function ( ) {
50+ it ( 'Nav menu should expand' , function ( ) {
51+ cy . viewport ( 960 , 600 )
52+ cy . get ( '.navbar-toggler' ) . click ( )
53+ } )
54+ it ( 'Nav menu should collapse' , function ( ) {
55+ cy . viewport ( 960 , 600 )
56+ cy . get ( '.navbar-toggler' ) . click ( )
57+ cy . wait ( 2000 )
58+ cy . get ( '.navbar-toggler' ) . click ( )
59+ //cy.get('.navbar').should('not.be.visible', 'About')
60+ } )
61+ it ( 'Home on nav Bar should redirect to home page' , function ( ) {
62+ cy . viewport ( 960 , 600 )
63+ cy . get ( '.navbar-toggler' ) . click ( )
64+ cy . get ( '.navbar' ) . contains ( 'Home' ) . click ( )
65+ cy . url ( ) . should ( 'include' , '/' )
66+ } )
67+ it ( 'Services should drop down to display Development and navigate to developer page' , function ( ) {
68+ cy . viewport ( 960 , 600 )
69+ cy . get ( '.navbar-toggler' ) . click ( )
70+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
71+ cy . get ( '.navbar' ) . contains ( 'Development' ) . click ( )
72+ cy . url ( ) . should ( 'include' , '/app-developer' )
73+ } )
74+ it ( 'Services should drop down to display UI/UX Design and navigate to design page' , function ( ) {
75+ cy . viewport ( 960 , 600 )
76+ cy . get ( '.navbar-toggler' ) . click ( )
77+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
78+ cy . get ( '.navbar' ) . contains ( 'UX/UI Design' ) . click ( )
79+ cy . url ( ) . should ( 'include' , '/app-designer' )
80+ } )
81+ it ( 'Services should drop down to display Consulting and navigate to consulting page' , function ( ) {
82+ cy . viewport ( 960 , 600 )
83+ cy . get ( '.navbar-toggler' ) . click ( )
84+ cy . get ( '.navbar' ) . contains ( 'Services' ) . click ( )
85+ cy . get ( '.navbar' ) . contains ( 'Consulting' ) . click ( )
86+ cy . url ( ) . should ( 'include' , '/startup-consulting' )
87+ } )
88+ it ( 'About should drop down to display Meet the team and navigate to about page' , function ( ) {
89+ cy . viewport ( 960 , 600 )
90+ cy . get ( '.navbar-toggler' ) . click ( )
91+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
92+ cy . get ( '.navbar' ) . contains ( 'Meet the team' ) . click ( )
93+ cy . url ( ) . should ( 'include' , '/about' )
94+ } )
95+ it ( 'About should drop down to display Juntoscope Case Study and navigate to juntoscope page' , function ( ) {
96+ cy . viewport ( 960 , 600 )
97+ cy . get ( '.navbar-toggler' ) . click ( )
98+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
99+ cy . get ( '.navbar' ) . contains ( 'Juntoscope Case Study' ) . click ( )
100+ cy . url ( ) . should ( 'include' , '/juntoscope' )
101+ } )
102+ it ( 'About should drop down to display Toolbox and navigate to Toolbox page' , function ( ) {
103+ cy . viewport ( 960 , 600 )
104+ cy . get ( '.navbar-toggler' ) . click ( )
105+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
106+ cy . get ( '.navbar' ) . contains ( 'Toolbox' ) . click ( )
107+ cy . url ( ) . should ( 'include' , '/toolbox' )
108+ } )
109+ it ( 'About should drop down to display PWA White Paper and navigate to PWA White Paper page' , function ( ) {
110+ cy . viewport ( 960 , 600 )
111+ cy . get ( '.navbar-toggler' ) . click ( )
112+ cy . get ( '.navbar' ) . contains ( 'About' ) . click ( )
113+ cy . get ( '.navbar' ) . contains ( 'PWA White Paper' ) . click ( )
114+ cy . url ( ) . should ( 'include' , '/resources/pwa-white-paper' )
115+ } )
116+ } )
117+
118+
8119 describe ( 'Header' , function ( ) {
9120 it ( 'Header should display with appropriate text content within it' , function ( ) {
10121 const h2Content = 'Let\'s Work Together'
@@ -42,7 +153,9 @@ describe('Contact Page', function () {
42153 } )
43154
44155 it ( 'Should show a success message on submit when all form values have been filled out' , function ( ) {
156+ cy . wait ( 2000 )
45157 cy . contains ( 'Thank you' )
158+ //This test will randomly fail, look into it.
46159 } )
47160
48161 it ( 'All fields should be clear after successful form submission' , function ( ) {
@@ -59,14 +172,38 @@ describe('Contact Page', function () {
59172 } )
60173 } )
61174 } )
175+
62176 describe ( 'Footer Navigation' , function ( ) {
63- it ( 'Read our SLA' , function ( ) {
177+ it ( 'Navigate to SLA page ' , function ( ) {
64178 cy . contains ( 'Read our SLA' ) . click ( )
65- // Should be on a new URL which includes '/commands/actions'
66179 cy . url ( ) . should ( 'include' , '/service-level-agreement' )
67180 } )
181+ it ( 'Navigate to Developer page' , function ( ) {
182+ cy . contains ( 'I\'m a developer' ) . click ( )
183+ cy . url ( ) . should ( 'include' , '/opportunities/develop' )
184+ } )
185+ it ( 'Navigate to Design page' , function ( ) {
186+ cy . contains ( 'I\'m a designer' ) . click ( )
187+ cy . url ( ) . should ( 'include' , '/opportunities/design' )
188+ } )
68189 it ( 'Navigates to StartupJunto Registration Page' , function ( ) {
69190 cy . contains ( 'Register Today' ) . click ( )
70191 } )
192+ it ( 'Navigates to OpenForge Twitter' , function ( ) {
193+ cy . contains ( '@OpenForge_US' ) . click ( )
194+ } )
195+ it ( 'Navigates to OpenForge Facebook' , function ( ) {
196+ cy . contains ( 'OpenForge_US' ) . click ( )
197+ } )
198+ it ( 'Navigates to OpenForge Linkedin' , function ( ) {
199+ cy . contains ( 'OpenForge_US' ) . click ( )
200+ } )
201+ it ( 'Navigates to OpenForge Instagram' , function ( ) {
202+ cy . contains ( '@OpenForgeTeam' ) . click ( )
203+ } )
204+ //it('Open native mail to contact Hello@openforge.io', function () {
205+ //cy.contains('hello@openforge.io').click()
206+ //})
71207 } )
72- } )
208+
209+ } )
0 commit comments