Skip to content

Commit e8a1cda

Browse files
committed
test: misc e2e fixes
1 parent 1f8b5d8 commit e8a1cda

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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)