fix: use groupAcronym to determine hackathon icon in agenda (#8540)
* fix: use groupAcronym to determine hackathon icon in agenda * test: fix agenda tests related to hackathon
This commit is contained in:
parent
ed19b54d8a
commit
d1ec7378da
|
@ -307,7 +307,7 @@ const meetingEvents = computed(() => {
|
|||
})
|
||||
}
|
||||
// -> Point to Wiki for Hackathon sessions, HedgeDocs otherwise
|
||||
if (item.name.toLowerCase().includes('hackathon')) {
|
||||
if (item.groupAcronym === 'hackathon') {
|
||||
links.push({
|
||||
id: `lnk-${item.id}-wiki`,
|
||||
label: 'Wiki',
|
||||
|
@ -461,7 +461,7 @@ const meetingEvents = computed(() => {
|
|||
case 'other':
|
||||
if (item.name.toLowerCase().indexOf('office hours') >= 0) {
|
||||
icon = 'bi-building'
|
||||
} else if (item.name.toLowerCase().indexOf('hackathon') >= 0) {
|
||||
} else if (item.groupAcronym === 'hackathon') {
|
||||
icon = 'bi-command bi-pink'
|
||||
}
|
||||
break
|
||||
|
|
|
@ -395,7 +395,7 @@ module.exports = {
|
|||
name: 'Hackathon Kickoff',
|
||||
startDateTime: day1.set({ hour: 10, minute: 30 }),
|
||||
duration: '30m',
|
||||
...findAreaGroup('hackathon-kickoff', categories[2]),
|
||||
...findAreaGroup('hackathon', categories[2]),
|
||||
showAgenda: true,
|
||||
hasAgenda: true,
|
||||
hasRecordings: true,
|
||||
|
|
|
@ -238,7 +238,7 @@ test.describe('past - desktop', () => {
|
|||
// Name column
|
||||
// -----------
|
||||
// Event icon
|
||||
if (['break', 'plenary'].includes(event.type) || (event.type === 'other' && ['office hours', 'hackathon'].some(s => event.name.toLowerCase().indexOf(s) >= 0))) {
|
||||
if (['break', 'plenary'].includes(event.type) || (event.type === 'other' && event.name.toLowerCase().indexOf('office hours') >= 0)) {
|
||||
await expect(row.locator('.agenda-table-cell-name > i.bi')).toBeVisible()
|
||||
}
|
||||
// Name link
|
||||
|
@ -286,7 +286,7 @@ test.describe('past - desktop', () => {
|
|||
// No meeting materials yet warning badge
|
||||
await expect(eventButtons.locator('.no-meeting-materials')).toBeVisible()
|
||||
}
|
||||
if (event.name.toLowerCase().includes('hackathon')) {
|
||||
if (event.groupAcronym === 'hackathon') {
|
||||
// Hackathon Wiki button
|
||||
const hackathonWikiLink = `https://wiki.ietf.org/meeting/${meetingData.meeting.number}/hackathon`
|
||||
await expect(eventButtons.locator(`#btn-lnk-${event.id}-wiki`)).toHaveAttribute('href', hackathonWikiLink)
|
||||
|
@ -1169,7 +1169,7 @@ test.describe('future - desktop', () => {
|
|||
// No meeting materials yet warning badge
|
||||
await expect(eventButtons.locator('.no-meeting-materials')).toBeVisible()
|
||||
}
|
||||
if (event.name.toLowerCase().includes('hackathon')) {
|
||||
if (event.groupAcronym === 'hackathon') {
|
||||
// Hackathon Wiki button
|
||||
const hackathonWikiLink = `https://wiki.ietf.org/meeting/${meetingData.meeting.number}/hackathon`
|
||||
await expect(eventButtons.locator(`#btn-lnk-${event.id}-wiki`)).toHaveAttribute('href', hackathonWikiLink)
|
||||
|
|
Loading…
Reference in a new issue