This reverts commit 0f6d748365.
# Conflicts:
# docs/configuration/overview.mdx
# docs/experimental/overview.mdx
# packages/ui/src/elements/Status/index.tsx
This commit is contained in:
@@ -428,9 +428,6 @@ export default buildConfigWithDefaults({
|
||||
slug: 'global-text',
|
||||
},
|
||||
],
|
||||
experimental: {
|
||||
localizeStatus: true,
|
||||
},
|
||||
localization: {
|
||||
filterAvailableLocales: ({ locales }) => {
|
||||
return locales.filter((locale) => locale.code !== 'xx')
|
||||
|
||||
@@ -673,33 +673,6 @@ describe('Localization', () => {
|
||||
await changeLocale(page, defaultLocale)
|
||||
await expect(page.locator('#field-title')).toBeEmpty()
|
||||
})
|
||||
|
||||
test('should show localized status in collection list', async () => {
|
||||
await page.goto(urlPostsWithDrafts.create)
|
||||
const engTitle = 'Eng published'
|
||||
const spanTitle = 'Spanish draft'
|
||||
|
||||
await changeLocale(page, defaultLocale)
|
||||
await fillValues({ title: engTitle })
|
||||
await saveDocAndAssert(page)
|
||||
|
||||
await changeLocale(page, spanishLocale)
|
||||
await fillValues({ title: spanTitle })
|
||||
await saveDocAndAssert(page, '#action-save-draft')
|
||||
|
||||
await page.goto(urlPostsWithDrafts.list)
|
||||
|
||||
const columns = page.getByRole('button', { name: 'Columns' })
|
||||
await columns.click()
|
||||
await page.locator('#_status').click()
|
||||
|
||||
await expect(page.locator('.row-1 .cell-title')).toContainText(spanTitle)
|
||||
await expect(page.locator('.row-1 .cell-_status')).toContainText('Draft')
|
||||
|
||||
await changeLocale(page, defaultLocale)
|
||||
await expect(page.locator('.row-1 .cell-title')).toContainText(engTitle)
|
||||
await expect(page.locator('.row-1 .cell-_status')).toContainText('Published')
|
||||
})
|
||||
})
|
||||
|
||||
test('should not show publish specific locale button when no localized fields exist', async () => {
|
||||
|
||||
@@ -1097,7 +1097,7 @@ describe('Versions', () => {
|
||||
|
||||
await textField.fill('spanish draft')
|
||||
await saveDocAndAssert(page, '#action-save-draft')
|
||||
await expect(status).toContainText('Draft')
|
||||
await expect(status).toContainText('Changed')
|
||||
|
||||
await changeLocale(page, 'en')
|
||||
await textField.fill('english published')
|
||||
@@ -1130,7 +1130,7 @@ describe('Versions', () => {
|
||||
|
||||
const publishedDoc = data.docs[0]
|
||||
|
||||
expect(publishedDoc?.text).toStrictEqual({
|
||||
expect(publishedDoc.text).toStrictEqual({
|
||||
en: 'english published',
|
||||
es: 'spanish published',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user