test: fix admin e2e config (#839)

This commit is contained in:
Elliot DeNolf
2022-07-27 17:10:51 -04:00
committed by GitHub
parent 211b960440
commit b479013f00
3 changed files with 4 additions and 4 deletions

View File

@@ -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;

View File

@@ -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
View File

@@ -0,0 +1,2 @@
export const slug = 'posts';
export const globalSlug = 'global';