Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarvarela committed Sep 2, 2024
1 parent f50eef7 commit 8f9485d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions site/gatsby-site/playwright/e2e-full/cite.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ test.describe('Cite pages', () => {

const url = `/cite/${incidentId}`;

let user: { userId: string };

let lastIncidentId: number;

test.beforeAll(async ({ request }) => {
Expand All @@ -30,19 +28,13 @@ test.describe('Cite pages', () => {
const response = await query({
query: gql`
{
user(filter: { first_name: {EQ: "Test"}, last_name: {EQ: "User" }}) {
userId
first_name
last_name
}
incidents(sort: {incident_id: DESC}, pagination: {limit: 1}) {
incident_id
}
}
`,
});

user = response.data.user;
lastIncidentId = response.data.incidents[0].incident_id;
});

Expand Down
2 changes: 1 addition & 1 deletion site/gatsby-site/playwright/e2e-full/submit.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gql } from 'graphql-tag';
import { isArray } from 'lodash';
import { init, seedCollection } from '../memory-mongo';
import { fillAutoComplete, query, setEditorText, test } from '../utils';
import config from '../../config';
import config from '../config';
import { DBSubmission } from '../seeds/aiidprod/submissions';
import { ObjectId } from 'mongodb';

Expand Down

0 comments on commit 8f9485d

Please sign in to comment.