move e2e tests to a commonjs project as they dont work in esmodule context
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { rest } from 'msw';
|
||||
|
||||
import { expect, test } from '../test';
|
||||
import { umbracoPath } from '@umbraco-cms/utils';
|
||||
import { ProblemDetails, RuntimeLevel, ServerStatus } from '@umbraco-cms/backend-api';
|
||||
import { expect, test } from './test';
|
||||
|
||||
test.describe('installer tests', () => {
|
||||
test.beforeEach(async ({ page, worker }) => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { expect, test } from '../test';
|
||||
import { expect, test } from './test';
|
||||
|
||||
test('login', async ({ page }) => {
|
||||
// Go to /login
|
||||
|
||||
4
src/Umbraco.Web.UI.Client/e2e/package.json
Normal file
4
src/Umbraco.Web.UI.Client/e2e/package.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"name": "backoffice-e2e",
|
||||
"type": "commonjs"
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import { expect, test as base } from '@playwright/test';
|
||||
import { createWorkerFixture } from 'playwright-msw';
|
||||
import type { MockServiceWorker } from 'playwright-msw';
|
||||
|
||||
import { handlers } from './src/core/mocks/e2e-handlers';
|
||||
import { handlers } from '../src/core/mocks/e2e-handlers';
|
||||
|
||||
const test = base.extend<{
|
||||
worker: MockServiceWorker;
|
||||
@@ -1,7 +1,7 @@
|
||||
import { rest } from 'msw';
|
||||
import { expect, test } from '../test';
|
||||
import { umbracoPath } from '@umbraco-cms/utils';
|
||||
import { ProblemDetails, RuntimeLevel, ServerStatus } from '@umbraco-cms/backend-api';
|
||||
import { expect, test } from './test';
|
||||
|
||||
test.describe('upgrader tests', () => {
|
||||
test.beforeEach(async ({ page, worker }) => {
|
||||
|
||||
Reference in New Issue
Block a user