@@ -642,7 +642,6 @@ describe('Outline Tab', () => {
642642 cert_status : CERT_STATUS_TYPE . EARNED_NOT_AVAILABLE ,
643643 cert_web_view_url : null ,
644644 certificate_available_date : tomorrow . toISOString ( ) ,
645- download_url : null ,
646645 } ,
647646 } , {
648647 date_blocks : [
@@ -670,7 +669,6 @@ describe('Outline Tab', () => {
670669 cert_data : {
671670 cert_status : CERT_STATUS_TYPE . UNVERIFIED ,
672671 cert_web_view_url : null ,
673- download_url : null ,
674672 } ,
675673 } , {
676674 date_blocks : [
@@ -739,7 +737,6 @@ describe('Outline Tab', () => {
739737 cert_data : {
740738 cert_status : CERT_STATUS_TYPE . REQUESTING ,
741739 cert_web_view_url : null ,
742- download_url : null ,
743740 } ,
744741 } , {
745742 date_blocks : [
@@ -773,50 +770,7 @@ describe('Outline Tab', () => {
773770 org_key : 'edX' ,
774771 } ) ;
775772 } ) ;
776- it ( 'tracks download cert button' , async ( ) => {
777- sendTrackEvent . mockClear ( ) ;
778- const now = new Date ( ) ;
779- const yesterday = new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) - 1 ) ;
780- const tomorrow = new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) + 1 ) ;
781- setMetadata ( { is_enrolled : true } ) ;
782- setTabData ( {
783- cert_data : {
784- cert_status : CERT_STATUS_TYPE . DOWNLOADABLE ,
785- cert_web_view_url : null ,
786- download_url : null ,
787- } ,
788- } , {
789- date_blocks : [
790- {
791- date_type : 'course-end-date' ,
792- date : yesterday . toISOString ( ) ,
793- title : 'End' ,
794- } ,
795- {
796- date_type : 'certificate-available-date' ,
797- date : tomorrow . toISOString ( ) ,
798- title : 'Cert Available' ,
799- } ,
800- {
801- date_type : 'verification-deadline-date' ,
802- date : tomorrow . toISOString ( ) ,
803- link_text : 'Verify' ,
804- title : 'Verification Upgrade Deadline' ,
805- } ,
806- ] ,
807- } ) ;
808- await fetchAndRender ( ) ;
809- sendTrackEvent . mockClear ( ) ;
810- const requestingButton = screen . getByRole ( 'button' , { name : 'View my certificate' } ) ;
811- fireEvent . click ( requestingButton ) ;
812- expect ( sendTrackEvent ) . toHaveBeenCalledTimes ( 1 ) ;
813- expect ( sendTrackEvent ) . toHaveBeenCalledWith ( 'edx.ui.lms.course_outline.certificate_alert_downloadable_button.clicked' ,
814- {
815- courserun_key : courseId ,
816- is_staff : false ,
817- org_key : 'edX' ,
818- } ) ;
819- } ) ;
773+
820774 it ( 'tracks unverified cert button' , async ( ) => {
821775 sendTrackEvent . mockClear ( ) ;
822776 const now = new Date ( ) ;
@@ -827,7 +781,6 @@ describe('Outline Tab', () => {
827781 cert_data : {
828782 cert_status : CERT_STATUS_TYPE . UNVERIFIED ,
829783 cert_web_view_url : null ,
830- download_url : null ,
831784 } ,
832785 } , {
833786 date_blocks : [
@@ -915,7 +868,6 @@ describe('Outline Tab', () => {
915868 cert_status : CERT_STATUS_TYPE . DOWNLOADABLE ,
916869 cert_web_view_url : 'certificate/testuuid' ,
917870 certificate_available_date : null ,
918- download_url : null ,
919871 } ,
920872 } , {
921873 date_blocks : [
@@ -941,7 +893,6 @@ describe('Outline Tab', () => {
941893 cert_status : CERT_STATUS_TYPE . REQUESTING ,
942894 cert_web_view_url : null ,
943895 certificate_available_date : null ,
944- download_url : null ,
945896 } ,
946897 } , {
947898 date_blocks : [
@@ -958,33 +909,6 @@ describe('Outline Tab', () => {
958909 } ) ;
959910 } ) ;
960911
961- describe ( 'Certificate (pdf) Complete Alert' , ( ) => {
962- it ( 'appears' , async ( ) => {
963- const now = new Date ( ) ;
964- const yesterday = new Date ( now . getFullYear ( ) , now . getMonth ( ) , now . getDate ( ) - 1 ) ;
965- setMetadata ( { is_enrolled : true } ) ;
966- setTabData ( {
967- cert_data : {
968- cert_status : CERT_STATUS_TYPE . DOWNLOADABLE ,
969- cert_web_view_url : null ,
970- certificate_available_date : null ,
971- download_url : 'download/url' ,
972- } ,
973- } , {
974- date_blocks : [
975- {
976- date_type : 'course-end-date' ,
977- date : yesterday . toISOString ( ) ,
978- title : 'End' ,
979- } ,
980- ] ,
981- } ) ;
982- await fetchAndRender ( ) ;
983- expect ( screen . queryByText ( 'Congratulations! Your certificate is ready.' ) ) . toBeInTheDocument ( ) ;
984- expect ( screen . queryByRole ( 'link' , { name : 'Download my certificate' } ) ) . toBeInTheDocument ( ) ;
985- } ) ;
986- } ) ;
987-
988912 describe ( 'Proctoring Info Panel' , ( ) => {
989913 const onboardingReleaseDate = new Date ( ) ;
990914 onboardingReleaseDate . setDate ( new Date ( ) . getDate ( ) - 7 ) ;
0 commit comments