Skip to content

Commit 1e4b94c

Browse files
committed
Merge branch 'feat/1.0' of github.com:payloadcms/payload into feat/1.0
2 parents cd8d1c7 + e8a1cda commit 1e4b94c

File tree

5 files changed

+21
-72
lines changed

5 files changed

+21
-72
lines changed

test/auth/e2e.spec.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

test/auth/e2e.todo-spec.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import type { Page } from '@playwright/test';
2+
import { expect, test } from '@playwright/test';
3+
import { AdminUrlUtil } from '../helpers/adminUrlUtil';
4+
import { initPayloadTest } from '../helpers/configHelpers';
5+
import { firstRegister } from '../helpers';
6+
import { slug } from './config';
7+
8+
/**
9+
* TODO: Auth
10+
* change password
11+
* unlock
12+
* generate api key
13+
* log out
14+
*/
15+
16+
const { beforeAll, describe } = test;
17+
let url: AdminUrlUtil;

test/fields-relationship/e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('fields - relationship', () => {
111111
test('should create hasMany relationship', async () => {
112112
await page.goto(url.create);
113113

114-
const field = page.locator('.field-relationshipHasMany');
114+
const field = page.locator('#field-relationshipHasMany');
115115

116116
await field.click({ delay: 100 });
117117

@@ -139,7 +139,7 @@ describe('fields - relationship', () => {
139139
test('should create relations to multiple collections', async () => {
140140
await page.goto(url.create);
141141

142-
const field = page.locator('.field-relationshipMultiple');
142+
const field = page.locator('#field-relationshipMultiple');
143143

144144
await field.click({ delay: 100 });
145145

test/localization/e2e.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test';
33
import type { TypeWithTimestamps } from '../../src/collections/config/types';
44
import { AdminUrlUtil } from '../helpers/adminUrlUtil';
55
import { initPayloadTest } from '../helpers/configHelpers';
6-
import { firstRegister, saveDocAndAssert } from '../helpers';
6+
import { login, saveDocAndAssert } from '../helpers';
77
import type { LocalizedPost } from './payload-types';
88
import { slug } from './config';
99

@@ -39,7 +39,7 @@ describe('Localization', () => {
3939
const context = await browser.newContext();
4040
page = await context.newPage();
4141

42-
await firstRegister({ page, serverURL });
42+
await login({ page, serverURL });
4343
});
4444

4545
describe('localized text', () => {

0 commit comments

Comments
 (0)