Skip to content

Commit 9c404a2

Browse files
authored
test: fix agenda materials dialog footer btn tests (ietf-tools#4567)
1 parent 0ad293d commit 9c404a2

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

playwright/tests/meeting/agenda.spec.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
})

0 commit comments

Comments
 (0)