Skip to content

Commit

Permalink
Merge pull request #3137 from aiidtest/fix-editor-notes-lost
Browse files Browse the repository at this point in the history
Fix broken tests
  • Loading branch information
cesarvarela authored Oct 1, 2024
2 parents 419ca85 + ed470fd commit 85cbefe
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions site/gatsby-site/playwright/e2e-full/cite.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,17 +606,19 @@ test.describe('Cite pages', () => {

test('Should load incident data not yet in build', async ({ page }) => {

await init();

const incident: DBIncident = {
incident_id: 4,
title: 'Test Title',
description: 'Incident 4 description',
date: "2020-01-01",
"Alleged deployer of AI system": ["entity1"],
"Alleged developer of AI system": ["entity2"],
"Alleged harmed or nearly harmed parties": ["entity3"],
"Alleged deployer of AI system": ["entity-1"],
"Alleged developer of AI system": ["entity-2"],
"Alleged harmed or nearly harmed parties": ["entity-3"],
editors: ["user1"],
reports: [1],
editor_notes: "",
editor_notes: "This is an editor note",
flagged_dissimilar_incidents: []
}

Expand Down
8 changes: 4 additions & 4 deletions site/gatsby-site/playwright/e2e-full/subscription.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,13 @@ test.describe('Subscriptions', () => {
const subscriptions: DBSubscription[] = [
{
_id: new ObjectId("62f40cd14016f5858d72385d"),
entityId: 'entity1',
entityId: 'entity-1',
type: SUBSCRIPTION_TYPE.entity,
userId: userId,
},
{
_id: new ObjectId("62f40cd14016f5858d72385e"),
entityId: 'entity2',
entityId: 'entity-2',
type: SUBSCRIPTION_TYPE.entity,
userId: userId,
}
Expand Down Expand Up @@ -229,13 +229,13 @@ test.describe('Subscriptions', () => {
const subscriptions: DBSubscription[] = [
{
_id: new ObjectId("62f40cd14016f5858d72385d"),
entityId: 'entity1',
entityId: 'entity-1',
type: SUBSCRIPTION_TYPE.entity,
userId: userId,
},
{
_id: new ObjectId("62f40cd14016f5858d72385e"),
entityId: 'entity2',
entityId: 'entity-2',
type: SUBSCRIPTION_TYPE.entity,
userId: userId,
}
Expand Down

0 comments on commit 85cbefe

Please sign in to comment.