@@ -349,12 +349,109 @@ describe('App Our Work', function () {
349349 cy . get ( ':nth-child(1) > .other-button > stencil-route-link.hydrated > a > button' ) . click ( ) ;
350350 cy . get ( '.header-content > h1' ) . contains ( 'Mobile Measures' ) ;
351351
352- it ( 'The footer is visible on the LoudCloud page' , ( ) => {
353- cy . visit ( env + '/our-work/loudcloud' ) ;
354- cy . get ( '.footer' ) . scrollIntoView ( ) ;
355- cy . get ( '.footer' ) . should ( 'be.visible' ) ;
356- } ) ;
352+ } ) ;
353+
354+ it ( 'The footer is visible on the LoudCloud page' , ( ) => {
355+ cy . visit ( env + '/our-work/loudcloud' ) ;
356+ cy . get ( '.footer' ) . scrollIntoView ( ) ;
357+ cy . get ( '.footer' ) . should ( 'be.visible' ) ;
358+ } ) ;
359+ } ) ;
360+ describe ( 'Projects The Voyage' , function ( ) {
361+ beforeEach ( ( ) => {
362+ cy . visit ( env + '/our-work/voyage' ) ;
363+ } ) ;
364+
365+ it ( 'The Voyage hero image, Text, and logo displays' , ( ) => {
366+ cy . get ( '.header-content > h1' ) . contains ( 'The Voyage' ) ;
367+ cy . get ( '.header-content > p' ) . contains ( 'Health and Well-Being Tracker and Evaluator' ) ;
368+ cy . get ( '.logo' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
369+ cy . get ( '.d-none' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
370+ } ) ;
371+
372+ it ( 'The Voyage Get back in motion section displays' , ( ) => {
373+ cy . get ( '[data-cy=title]' ) . should ( 'exist' ) ;
374+ cy . get ( '[data-cy=subtitle]' ) . should ( 'exist' ) ;
375+ cy . get ( '.col-md-8 > .project-content-icons > :nth-child(1) > .hydrated > img' ) . should ( 'exist' ) ;
376+ cy . get ( '.col-md-8 > .project-content-icons > :nth-child(2) > .hydrated > img' ) . should ( 'exist' ) ;
377+ cy . get ( '.col-md-8 > .project-content-icons > :nth-child(3) > .hydrated > img' ) . should ( 'exist' ) ;
378+ cy . get ( '[data-cy=apple-button]' ) . should ( 'exist' ) ;
379+ cy . get ( '[data-cy=google-button]' ) . should ( 'exist' ) ;
380+ cy . get ( '.col-md-4 > :nth-child(2) > .hydrated > img' ) . should ( 'exist' ) ;
381+ cy . get ( '.col-md-4 > :nth-child(1) > .hydrated > img' ) . should ( 'exist' ) ;
382+ } ) ;
383+
384+ it ( 'The Voyage App / Play store button navigate users to the listings' , ( ) => {
385+ cy . get ( '[data-cy=apple-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
386+ cy . get ( '[data-cy=google-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
387+ } ) ;
388+
389+ it ( 'The three Voyage phones display' , ( ) => {
390+ cy . get ( '.key-features' ) . scrollIntoView ( ) ;
391+ cy . get ( '[data-cy=image1k]' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
392+ cy . get ( '[data-cy=image2k]' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
393+ cy . get ( '[data-cy=image3k]' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
394+ } ) ;
395+
396+ it ( 'Voyage Key features display' , ( ) => {
397+ cy . get ( '.key-features-text' ) . scrollIntoView ( ) ;
398+ cy . get ( '.key-features-text > .container > h2' ) . contains ( 'Key Features' ) ;
399+ cy . get ( '.key-features-text > .container > p' ) . contains ( 'Starting with the confidential Private Health Assessment (PHA)' ) ;
400+ cy . get ( '.key-features-text' ) . should ( 'have.css' , 'background-color' ) . and ( 'contains' , 'rgb(41, 42, 45)' ) ;
401+ } ) ;
402+
403+ it ( '"More Projects" displays with the divider' , ( ) => {
404+ cy . get ( '.more-projects' ) . scrollIntoView ( ) ;
405+ cy . get ( '[data-cy=more-title]' ) . contains ( 'More Projects' ) ;
406+ cy . get ( '.aside-lines' ) . should ( 'exist' ) . and ( 'be.visible' ) ;
407+ } ) ;
357408
409+ it ( 'Check that the LoudCloud app displays' , ( ) => {
410+ cy . get ( '.more-projects' ) . scrollIntoView ( ) ;
411+ cy . get ( '[src="/assets/our-work/lc-feature-image1.png"]' ) . should ( 'exist' ) ;
412+ cy . get ( '[src="/assets/our-work/lc-feature-image2.png"]' ) . should ( 'exist' ) ;
413+ cy . get ( '[data-cy=apple-button]' ) . should ( 'exist' ) ;
414+ cy . get ( '[data-cy=google-button]' ) . should ( 'exist' ) ;
415+ cy . get ( '.more-projects-items > :nth-child(2) > .d-none' ) . should ( 'exist' ) ;
416+ cy . get ( '.other-button' ) . should ( 'exist' ) ;
417+ } ) ;
418+
419+ it ( 'Check that the LoudCloud "View project" button works' , ( ) => {
420+ cy . get ( '.more-projects' ) . scrollIntoView ( ) ;
421+ cy . get ( ':nth-child(2) > .other-button > stencil-route-link.hydrated > a > button' ) . click ( ) ;
422+ cy . get ( '.header-content > h1' ) . contains ( 'LoudCloud' ) ;
423+
424+ } ) ;
425+
426+ it ( 'Check that the LoudCloud App/Play store links work' , ( ) => {
427+ cy . get ( '[data-cy=apple-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
428+ cy . get ( '[data-cy=google-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
429+ } ) ;
430+
431+ it ( 'Check that the Mobile Measures app displays' , ( ) => {
432+ cy . get ( '.more-projects' ) . scrollIntoView ( ) ;
433+ cy . get ( '[src="/assets/our-work/mm-feature-image3.png"]' ) . should ( 'exist' ) ;
434+ cy . get ( '[src="/assets/our-work/mm-feature-image1.png"]' ) . should ( 'exist' ) ;
435+ cy . get ( '[data-cy=apple-button]' ) . should ( 'exist' ) ;
436+ cy . get ( '[data-cy=google-button]' ) . should ( 'exist' ) ;
437+ cy . get ( '.more-projects-items > :nth-child(1) > .d-none' ) . should ( 'exist' ) ;
438+ cy . get ( '.other-button' ) . should ( 'exist' ) ;
439+ } ) ;
440+
441+ it ( 'Check that the Mobile Measures App/Play store links work' , ( ) => {
442+ cy . get ( '[data-cy=apple-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
443+ cy . get ( '[data-cy=google-button]' ) . should ( 'have.attr' , 'target' , '_blank' ) ;
444+ } ) ;
445+
446+ it ( 'Check that the Mobile Measures "View project" button works' , ( ) => {
447+ cy . get ( '.more-projects' ) . scrollIntoView ( ) ;
448+ cy . get ( ':nth-child(1) > .other-button > stencil-route-link.hydrated > a > button' ) . click ( ) ;
449+ cy . get ( '.header-content > h1' ) . contains ( 'Mobile Measures' ) ;
450+ } ) ;
451+
452+ it ( 'The footer is visible on the Voyage page' , ( ) => {
453+ cy . get ( '.footer' ) . scrollIntoView ( ) ;
454+ cy . get ( '.footer' ) . should ( 'be.visible' ) ;
358455 } ) ;
359456 } ) ;
360457 } ) ;
0 commit comments