move e2e tests to a commonjs project as they dont work in esmodule context

This commit is contained in:
Jacob Overgaard
2022-11-24 09:45:51 +01:00
parent 625b8f2847
commit 3f5cca3cea
5 changed files with 8 additions and 4 deletions

View File

@@ -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 }) => {

View File

@@ -1,4 +1,4 @@
import { expect, test } from '../test';
import { expect, test } from './test';
test('login', async ({ page }) => {
// Go to /login

View File

@@ -0,0 +1,4 @@
{
"name": "backoffice-e2e",
"type": "commonjs"
}

View File

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

View File

@@ -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 }) => {