Skip to content

Commit

Permalink
update tests to handle new demo group titles
Browse files Browse the repository at this point in the history
  • Loading branch information
nickoferrall committed Feb 18, 2025
1 parent 8f8001f commit c75594e
Showing 1 changed file with 8 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ test.describe('retrospective-demo / group page', () => {
const documentingInNotionCard = page.locator('text=Documenting things in Notion')
await dragReflectionCard(writingThingsDownCard, documentingInNotionCard)

// Then it auto-generates a header
// Then it auto-generates a AI group title
await expect(
page.locator(`[data-cy=group-column-Start] [data-cy*="Start-group-"] input[value="Things"]`)
page.locator(`[data-cy=group-column-Start] [data-cy*="Start-group-"] input`)
).toBeVisible()

// Then it shows all cards when clicking the group
Expand Down Expand Up @@ -116,11 +116,9 @@ test.describe('retrospective-demo / group page', () => {
const documentingInNotionCard = page.locator('text=Documenting things in notion')
await dragReflectionCard(decisionsInOneOnOnesCard, documentingInNotionCard)

// Then it auto-generates a header
// Then it auto-generates a AI group title
await expect(
page.locator(
`[data-cy=group-column-Start] [data-cy*="Start-group-"] input[value="Things Notion"]`
)
page.locator(`[data-cy=group-column-Start] [data-cy*="Start-group-"] input`)
).toBeVisible()

// Then it shows all cards when clicking the group
Expand Down Expand Up @@ -158,11 +156,9 @@ test.describe('retrospective-demo / group page', () => {
timeout
})

// It created the "People Decisions Interns" group
// It created a group with AI-generated title
await expect(
page.locator(
`[data-cy=group-column-Start] [data-cy*="Start-group-"] input[value="People Decisions Interns"]`
)
page.locator(`[data-cy=group-column-Start] [data-cy*="Start-group-"] input`)
).toBeVisible({timeout})

// It drags the "making important decisions in chat" card from Stop to Start
Expand All @@ -179,11 +175,9 @@ test.describe('retrospective-demo / group page', () => {
timeout
})

// It created the "Team Work" group
// It created a group with AI-generated title
await expect(
page.locator(
`[data-cy=group-column-Continue] [data-cy*="Continue-group-"] input[value="Team Work"]`
)
page.locator(`[data-cy=group-column-Continue] [data-cy*="Continue-group-"] input`)
).toBeVisible({timeout})

// It drags "debates" card from Stop to Continue
Expand Down

0 comments on commit c75594e

Please sign in to comment.