Skip to content

Commit

Permalink
Fix submitted.spec and lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
clari182 committed Nov 12, 2024
1 parent 62d5008 commit 8903e92
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
20 changes: 15 additions & 5 deletions site/gatsby-site/playwright/e2e-full/api/lookupbyurl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,24 @@ test.describe('/api/lookupbyurl endpoint', () => {
title: "Kronos shift scheduling software a grind for Starbucks worker",
url: "https://searchhrsoftware.techtarget.com/news/4500252451/Kronos-shift-scheduling-software-a-grind-for-Starbucks-worker",
},
],
incidents: [
{
incident_id: 3,
title: "Kronos Scheduling Algorithm Allegedly Caused Financial Issues for Starbucks Employees",
url: "https://incidentdatabase.ai/cite/3",
report_number: 9,
title: "Response Issue Report 9",
url: "https://searchhrsoftware.techtarget.com/news/4500252451/Kronos-shift-scheduling-software-a-grind-for-Starbucks-worker",
},
],
incidents: [
{
incident_id: 3,
title: "Kronos Scheduling Algorithm Allegedly Caused Financial Issues for Starbucks Employees",
url: "https://incidentdatabase.ai/cite/3",
},
{
incident_id: 4,
title: "Test title 4",
url: "https://incidentdatabase.ai/cite/4",
},
],
},
{
url: "https://www.nytimes.com/interactive/2014/08/13/us/starbucks-workers-scheduling-hours.html",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ test.describe('Submitted reports', () => {

await page.locator('[data-cy="promote-button"]').click();

await expect(page.locator('[data-cy="toast"]').first()).toContainText('Successfully promoted submission to Incident 4 and Report 9');
await expect(page.locator('[data-cy="toast"]').first()).toContainText('Successfully promoted submission to Incident 5 and Report 10');

const { data: { incident } } = await query({
query: gql`{
Expand Down
4 changes: 2 additions & 2 deletions site/gatsby-site/playwright/seeds/aiidprod/incidents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ const incidents: DBIncident[] = [
],
"Alleged developer of AI system": [],
"Alleged harmed or nearly harmed parties": [],
description: "Kronos’s scheduling algorithm and its use by Starbucks managers allegedly negatively impacted financial and scheduling stability for Starbucks employees, which disadvantaged wage workers.",
title: "Kronos Scheduling Algorithm Allegedly Caused Financial Issues for Starbucks Employees",
description: "Test description 4",
title: "Test title 4",
editors: [
"619b47ea5eed5334edfa3bbc"
],
Expand Down

0 comments on commit 8903e92

Please sign in to comment.