File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -450,14 +450,17 @@ test.describe('past - desktop', () => {
450450 await expect ( page . locator ( '.agenda-eventdetails .detail-text > iframe' ) ) . toHaveAttribute ( 'src' , materialsInfo . minutes . url )
451451 // Footer Buttons
452452 const hedgeDocLink = `https://notes.ietf.org/notes-ietf-${ meetingData . meeting . number } -${ event . type === 'plenary' ? 'plenary' : event . acronym } `
453+ const detailsUrl = `/meeting/${ meetingData . meeting . number } /session/${ event . acronym } /`
453454 const footerBtnsLocator = page . locator ( '.agenda-eventdetails .detail-action > a' )
454455 await expect ( footerBtnsLocator ) . toHaveCount ( 4 )
455456 await expect ( footerBtnsLocator . first ( ) ) . toContainText ( 'Download as tarball' )
456457 await expect ( footerBtnsLocator . first ( ) ) . toHaveAttribute ( 'href' , `/meeting/${ meetingData . meeting . number } /agenda/${ event . acronym } -drafts.tgz` )
457458 await expect ( footerBtnsLocator . nth ( 1 ) ) . toContainText ( 'Download as PDF' )
458459 await expect ( footerBtnsLocator . nth ( 1 ) ) . toHaveAttribute ( 'href' , `/meeting/${ meetingData . meeting . number } /agenda/${ event . acronym } -drafts.pdf` )
459- await expect ( footerBtnsLocator . last ( ) ) . toContainText ( 'Notepad' )
460- await expect ( footerBtnsLocator . last ( ) ) . toHaveAttribute ( 'href' , hedgeDocLink )
460+ await expect ( footerBtnsLocator . nth ( 2 ) ) . toContainText ( 'Notepad' )
461+ await expect ( footerBtnsLocator . nth ( 2 ) ) . toHaveAttribute ( 'href' , hedgeDocLink )
462+ await expect ( footerBtnsLocator . last ( ) ) . toContainText ( `${ event . groupAcronym } materials page` )
463+ await expect ( footerBtnsLocator . last ( ) ) . toHaveAttribute ( 'href' , detailsUrl )
461464 // Clicking X should close the dialog
462465 await page . locator ( '.agenda-eventdetails .n-card-header__extra > .detail-header > button' ) . click ( )
463466 } )
You can’t perform that action at this time.
0 commit comments