fix: standardizes layout of document fields (#3798)

This commit is contained in:
Jacob Fletcher
2023-10-20 22:22:41 -04:00
committed by GitHub
parent 01380bebe5
commit 67d61df563
12 changed files with 283 additions and 444 deletions

View File

@@ -283,9 +283,6 @@ export default buildConfigWithDefaults({
name: 'approvedForRemoval',
type: 'checkbox',
defaultValue: false,
admin: {
position: 'sidebar',
},
},
{
name: 'approvedTitle',

View File

@@ -6,5 +6,17 @@ export const Users: CollectionConfig = {
admin: {
useAsTitle: 'email',
},
fields: [],
fields: [
{
name: 'textField',
type: 'text',
},
{
name: 'sidebarField',
type: 'text',
admin: {
position: 'sidebar',
},
},
],
}

View File

@@ -395,7 +395,7 @@ describe('admin', () => {
test('should allow changing language', async () => {
await page.goto(url.account)
const field = page.locator('.account__language .react-select')
const field = page.locator('.payload-settings__language .react-select')
await field.click()
const options = page.locator('.rs__option')
@@ -981,7 +981,7 @@ describe('admin', () => {
test('should use fallback language on field titles', async () => {
// change language German
await page.goto(url.account)
await page.locator('.account__language .react-select').click()
await page.locator('.payload-settings__language .react-select').click()
const languageSelect = page.locator('.rs__option')
// text field does not have a 'de' label
await languageSelect.locator('text=Deutsch').click()