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 BeforeLogin from './components/BeforeLogin';
|
||||
import AfterNavLinks from './components/AfterNavLinks';
|
||||
|
||||
export const slug = 'posts';
|
||||
export const globalSlug = 'global';
|
||||
import { slug, globalSlug } from './shared';
|
||||
|
||||
export interface Post {
|
||||
id: string;
|
||||
|
||||
@@ -5,7 +5,7 @@ import { AdminUrlUtil } from '../helpers/adminUrlUtil';
|
||||
import { initPayloadE2E } from '../helpers/configHelpers';
|
||||
import { login, saveDocAndAssert } from '../helpers';
|
||||
import type { Post } from './config';
|
||||
import { globalSlug, slug } from './config';
|
||||
import { globalSlug, slug } from './shared';
|
||||
import { mapAsync } from '../../src/utilities/mapAsync';
|
||||
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