Commit 55ce0b2c authored by Ana Ellis's avatar Ana Ellis

feat: new submission test, fix linting errors

parent 0dfef377
import faker from 'faker'
import config from 'config'
import { addUser } from '@pubsweet/db-manager'
import { Selector } from 'testcafe'
import { prepareEditor } from './helpers/prosemirror-helper'
import { Selector, t } from 'testcafe'
import { startServer, setup, setup2, teardown } from './helpers/setup'
import { startServer, setup, teardown } from './helpers/setup'
import { login, dashboard, submission } from './pageObjects'
let author
let title = 'this is a test submission'
const title = 'this is a test submission'
fixture
.only('Author user')
......@@ -115,7 +114,7 @@ test('Manage submissions journey, create new submission', async t => {
.ok()
})
test.skip
test
.before(async t => {
startServer
const result = await setup()
......
......@@ -28,4 +28,4 @@ export async function setup(user) {
return { userData }
}
export function teardown() {}
\ No newline at end of file
export function teardown() {}
import config from 'config'
import { ClientFunction, Selector, t } from 'testcafe'
import ReactSelector from 'testcafe-react-selectors'
import { Selector } from 'testcafe'
const dashboard = {
url: `${config.get('pubsweet-server.baseUrl')}`,
......
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