From 8903e9206437b6fec907e633dd527792b2c74b1c Mon Sep 17 00:00:00 2001 From: Clara Youdale Date: Tue, 12 Nov 2024 12:46:08 -0300 Subject: [PATCH] Fix submitted.spec and lookup --- .../e2e-full/api/lookupbyurl.spec.ts | 20 ++++++++++++++----- .../e2e-full/apps/submitted.spec.ts | 2 +- .../playwright/seeds/aiidprod/incidents.ts | 4 ++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/site/gatsby-site/playwright/e2e-full/api/lookupbyurl.spec.ts b/site/gatsby-site/playwright/e2e-full/api/lookupbyurl.spec.ts index d2dc423a5b..c5e52ac98d 100644 --- a/site/gatsby-site/playwright/e2e-full/api/lookupbyurl.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/api/lookupbyurl.spec.ts @@ -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", diff --git a/site/gatsby-site/playwright/e2e-full/apps/submitted.spec.ts b/site/gatsby-site/playwright/e2e-full/apps/submitted.spec.ts index f3e665a520..846d6319d1 100644 --- a/site/gatsby-site/playwright/e2e-full/apps/submitted.spec.ts +++ b/site/gatsby-site/playwright/e2e-full/apps/submitted.spec.ts @@ -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`{ diff --git a/site/gatsby-site/playwright/seeds/aiidprod/incidents.ts b/site/gatsby-site/playwright/seeds/aiidprod/incidents.ts index 2c7ba8ae73..d22143f0f2 100644 --- a/site/gatsby-site/playwright/seeds/aiidprod/incidents.ts +++ b/site/gatsby-site/playwright/seeds/aiidprod/incidents.ts @@ -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" ],