7e8084be87
* feat(backends): add proxy backend * feat: add proxy server initial commit * fix: move from joi to @hapi/joi * test: add joi validation tests * feat: proxy server initial implementations * test: add tests, fix build * chore: update yarn.lock * build: fix develop command * fix(back-proxy): fix bugs * test(backend-proxy): add cypress tests * chore: cleanup * chore: support node 10 * chore: code cleanup * chore: run cypress on ubuntu 16.04 * test(e2e): fix proxy backend cypress tests * chore: don't start proxy server on yarn develop
31 lines
696 B
JavaScript
31 lines
696 B
JavaScript
import fixture from './common/editorial_workflow';
|
|
import * as specUtils from './common/spec_utils';
|
|
import { entry1, entry2, entry3 } from './common/entries';
|
|
|
|
const backend = 'proxy';
|
|
|
|
describe('Proxy Backend Editorial Workflow', () => {
|
|
let taskResult = { data: {} };
|
|
|
|
before(() => {
|
|
specUtils.before(taskResult, { publish_mode: 'editorial_workflow' }, backend);
|
|
});
|
|
|
|
after(() => {
|
|
specUtils.after(taskResult, backend);
|
|
});
|
|
|
|
beforeEach(() => {
|
|
specUtils.beforeEach(taskResult, backend);
|
|
});
|
|
|
|
afterEach(() => {
|
|
specUtils.afterEach(taskResult, backend);
|
|
});
|
|
|
|
fixture({
|
|
entries: [entry1, entry2, entry3],
|
|
getUser: () => taskResult.data.user,
|
|
});
|
|
});
|