Commit 9291dfc1 authored by Ana Ellis's avatar Ana Ellis

feat: new submission test, added huge timeout for file upload

parent 3f33abef
......@@ -2,9 +2,9 @@ import faker from 'faker'
import config from 'config'
import { addUser } from '@pubsweet/db-manager'
import { startServer, setup, setup2, teardown } from './helpers/setup'
import { login, dashboard, submissionInformation } from './pageObjects'
import { login, dashboard, submission } from './pageObjects'
import { Selector } from 'testcafe'
import { Selector, t } from 'testcafe'
let author
let title = 'this is a test submission'
......
import config from 'config'
import { ClientFunction, Selector, t } from 'testcafe'
import ReactSelector from 'testcafe-react-selectors'
import { t } from 'testcafe';
const dashboard = {
url: `${config.get('pubsweet-server.baseUrl')}`,
......
......@@ -4,19 +4,7 @@ import ReactSelector from 'testcafe-react-selectors'
const submission = {
title: Selector('div[id="metadata.title"] div[contenteditable=true]'),
abstract: Selector('div[id="metadata.abstract"] div[contenteditable=true]'),
addAuthor: Selector('div[id="metadata.authors"] button[type=button]'),
authorFirstName: Selector(
'div[id="metadata.authors"] input[name="metadata.authors[0].firstName"]',
),
authorLastName: Selector(
'div[id="metadata.authors"] input[name="metadata.authors[0].lastName"]',
),
authorEmail: Selector(
'div[id="metadata.authors"] input[name="metadata.authors[0].email"]',
),
authorAffiliation: Selector(
'div[id="metadata.authors"] input[name="metadata.authors[0].affiliation"]',
),
authors: Selector('div[id="metadata.authors"] input'),
keywords: Selector('div[id="metadata.keywords"] input'),
articleType: Selector('div[id="metadata.articleType"] button'),
articleTypeOptions: Selector(
......@@ -38,7 +26,7 @@ const submission = {
preregisteredOptions: Selector('div[id="declarations.preregistered"] label'),
fundingAcknowledgement: Selector(
'div[id="notes.fundingAcknowledgement"] div[contenteditable]',
'div[id="notes.fundingAcknowledgement"] div[contenteditable=true]',
),
submit: Selector('button[type=button]').withText('Submit your manuscript'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment