test: misc e2e fixes
This commit is contained in:
@@ -111,7 +111,7 @@ describe('fields - relationship', () => {
|
||||
test('should create hasMany relationship', async () => {
|
||||
await page.goto(url.create);
|
||||
|
||||
const field = page.locator('.field-relationshipHasMany');
|
||||
const field = page.locator('#field-relationshipHasMany');
|
||||
|
||||
await field.click({ delay: 100 });
|
||||
|
||||
@@ -139,7 +139,7 @@ describe('fields - relationship', () => {
|
||||
test('should create relations to multiple collections', async () => {
|
||||
await page.goto(url.create);
|
||||
|
||||
const field = page.locator('.field-relationshipMultiple');
|
||||
const field = page.locator('#field-relationshipMultiple');
|
||||
|
||||
await field.click({ delay: 100 });
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { expect, test } from '@playwright/test';
|
||||
import type { TypeWithTimestamps } from '../../src/collections/config/types';
|
||||
import { AdminUrlUtil } from '../helpers/adminUrlUtil';
|
||||
import { initPayloadTest } from '../helpers/configHelpers';
|
||||
import { firstRegister, saveDocAndAssert } from '../helpers';
|
||||
import { login, saveDocAndAssert } from '../helpers';
|
||||
import type { LocalizedPost } from './payload-types';
|
||||
import { slug } from './config';
|
||||
|
||||
@@ -39,7 +39,7 @@ describe('Localization', () => {
|
||||
const context = await browser.newContext();
|
||||
page = await context.newPage();
|
||||
|
||||
await firstRegister({ page, serverURL });
|
||||
await login({ page, serverURL });
|
||||
});
|
||||
|
||||
describe('localized text', () => {
|
||||
|
||||
Reference in New Issue
Block a user