@@ -368,12 +368,18 @@ test.describe('past - desktop', () => {
368368 const materialsUrl = ( new URL ( event . agenda . url ) ) . pathname
369369 const materialsInfo = {
370370 url : event . agenda . url ,
371- slides : _ . times ( 5 , idx => ( {
372- id : 100000 + idx ,
373- title : faker . commerce . productName ( ) ,
374- url : `/meeting/${ meetingData . meeting . number } /materials/slides-${ meetingData . meeting . number } -${ event . acronym } -${ faker . internet . domainWord ( ) } ` ,
375- ext : [ 'pdf' , 'html' , 'md' , 'txt' , 'pptx' ] [ idx ]
376- } ) ) ,
371+ slides : {
372+ decks : _ . times ( 5 , idx => ( {
373+ id : 100000 + idx ,
374+ title : faker . commerce . productName ( ) ,
375+ url : `/meeting/${ meetingData . meeting . number } /materials/slides-${ meetingData . meeting . number } -${ event . acronym } -${ faker . internet . domainWord ( ) } ` ,
376+ ext : [ 'pdf' , 'html' , 'md' , 'txt' , 'pptx' ] [ idx ]
377+ } ) ) ,
378+ actions : [ {
379+ label : 'Propose slides' ,
380+ url : `/meeting/${ meetingData . meeting . number } /session/${ event . sessionId } /propose_slides`
381+ } ]
382+ } ,
377383 minutes : {
378384 ext : 'md' ,
379385 id : 123456 ,
@@ -427,13 +433,16 @@ test.describe('past - desktop', () => {
427433 await navLocator . nth ( 1 ) . click ( )
428434 await expect ( navLocator . nth ( 1 ) ) . toHaveClass ( / a c t i v e / )
429435 await expect ( navLocator . first ( ) ) . not . toHaveClass ( / a c t i v e / )
430- const slidesLocator = page . locator ( '.agenda-eventdetails .detail-text > .list-group > .list-group-item' )
431- await expect ( slidesLocator ) . toHaveCount ( materialsInfo . slides . length )
432- for ( let idx = 0 ; idx < materialsInfo . slides . length ; idx ++ ) {
433- await expect ( slidesLocator . nth ( idx ) ) . toHaveAttribute ( 'href' , materialsInfo . slides [ idx ] . url )
434- await expect ( slidesLocator . nth ( idx ) . locator ( '.bi' ) ) . toHaveClass ( new RegExp ( `bi-filetype-${ materialsInfo . slides [ idx ] . ext } ` ) )
435- await expect ( slidesLocator . nth ( idx ) . locator ( 'span' ) ) . toContainText ( materialsInfo . slides [ idx ] . title )
436+ const slideDecksLocator = page . locator ( '.agenda-eventdetails .detail-text .n-card__content > .list-group > .list-group-item' )
437+ await expect ( slideDecksLocator ) . toHaveCount ( materialsInfo . slides . decks . length )
438+ for ( let idx = 0 ; idx < materialsInfo . slides . decks . length ; idx ++ ) {
439+ await expect ( slideDecksLocator . nth ( idx ) ) . toHaveAttribute ( 'href' , materialsInfo . slides . decks [ idx ] . url )
440+ await expect ( slideDecksLocator . nth ( idx ) . locator ( '.bi' ) ) . toHaveClass ( new RegExp ( `bi-filetype-${ materialsInfo . slides . decks [ idx ] . ext } ` ) )
441+ await expect ( slideDecksLocator . nth ( idx ) . locator ( 'span' ) ) . toContainText ( materialsInfo . slides . decks [ idx ] . title )
436442 }
443+ const slideActionButtonLocator = page . locator ( '.agenda-eventdetails .detail-text .n-card__action > a' )
444+ await expect ( slideActionButtonLocator ) . toHaveCount ( 1 )
445+ await expect ( slideActionButtonLocator . first ( ) . locator ( 'span' ) ) . toContainText ( 'Propose slides' )
437446 // Minutes Tab
438447 await navLocator . last ( ) . click ( )
439448 await expect ( navLocator . last ( ) ) . toHaveClass ( / a c t i v e / )
@@ -442,7 +451,7 @@ test.describe('past - desktop', () => {
442451 // Footer Buttons
443452 const hedgeDocLink = `https://notes.ietf.org/notes-ietf-${ meetingData . meeting . number } -${ event . type === 'plenary' ? 'plenary' : event . acronym } `
444453 const footerBtnsLocator = page . locator ( '.agenda-eventdetails .detail-action > a' )
445- await expect ( footerBtnsLocator ) . toHaveCount ( 3 )
454+ await expect ( footerBtnsLocator ) . toHaveCount ( 4 )
446455 await expect ( footerBtnsLocator . first ( ) ) . toContainText ( 'Download as tarball' )
447456 await expect ( footerBtnsLocator . first ( ) ) . toHaveAttribute ( 'href' , `/meeting/${ meetingData . meeting . number } /agenda/${ event . acronym } -drafts.tgz` )
448457 await expect ( footerBtnsLocator . nth ( 1 ) ) . toContainText ( 'Download as PDF' )
@@ -483,7 +492,7 @@ test.describe('past - desktop', () => {
483492 await expect ( page . locator ( '.agenda-eventdetails' ) ) . toBeVisible ( )
484493 // Slides Tab
485494 await page . locator ( '.agenda-eventdetails .detail-nav > a' ) . nth ( 1 ) . click ( )
486- await expect ( page . locator ( '.agenda-eventdetails .detail-text' ) ) . toContainText ( 'No slides submitted for this session.' )
495+ await expect ( page . locator ( '.agenda-eventdetails .detail-text .n-card__content ' ) ) . toContainText ( 'No slides submitted for this session.' )
487496 // Minutes Tab
488497 await page . locator ( '.agenda-eventdetails .detail-nav > a' ) . nth ( 2 ) . click ( )
489498 await expect ( page . locator ( '.agenda-eventdetails .detail-text' ) ) . toContainText ( 'No minutes submitted for this session.' )
0 commit comments