test: fix admin e2e config (#839)
This commit is contained in:
@@ -6,9 +6,7 @@ import CustomMinimalRoute from './components/views/CustomMinimal';
|
|||||||
import CustomDefaultRoute from './components/views/CustomDefault';
|
import CustomDefaultRoute from './components/views/CustomDefault';
|
||||||
import BeforeLogin from './components/BeforeLogin';
|
import BeforeLogin from './components/BeforeLogin';
|
||||||
import AfterNavLinks from './components/AfterNavLinks';
|
import AfterNavLinks from './components/AfterNavLinks';
|
||||||
|
import { slug, globalSlug } from './shared';
|
||||||
export const slug = 'posts';
|
|
||||||
export const globalSlug = 'global';
|
|
||||||
|
|
||||||
export interface Post {
|
export interface Post {
|
||||||
id: string;
|
id: string;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { AdminUrlUtil } from '../helpers/adminUrlUtil';
|
|||||||
import { initPayloadE2E } from '../helpers/configHelpers';
|
import { initPayloadE2E } from '../helpers/configHelpers';
|
||||||
import { login, saveDocAndAssert } from '../helpers';
|
import { login, saveDocAndAssert } from '../helpers';
|
||||||
import type { Post } from './config';
|
import type { Post } from './config';
|
||||||
import { globalSlug, slug } from './config';
|
import { globalSlug, slug } from './shared';
|
||||||
import { mapAsync } from '../../src/utilities/mapAsync';
|
import { mapAsync } from '../../src/utilities/mapAsync';
|
||||||
import wait from '../../src/utilities/wait';
|
import wait from '../../src/utilities/wait';
|
||||||
|
|
||||||
|
|||||||
2
test/admin/shared.ts
Normal file
2
test/admin/shared.ts
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
export const slug = 'posts';
|
||||||
|
export const globalSlug = 'global';
|
||||||
Reference in New Issue
Block a user