chore: restricts character length in table cells (#4063)

This commit is contained in:
Alessio Gravili
2023-11-14 17:25:24 +01:00
committed by GitHub
parent 45e9a559bb
commit 4ec5643dd7
5 changed files with 32 additions and 11 deletions

View File

@@ -867,6 +867,22 @@ describe('fields', () => {
await page.goto(url.list)
await page.locator('.row-1 .cell-title a').click()
}
describe('cell', () => {
test('ensure cells are smaller than 300px in height', async () => {
const url: AdminUrlUtil = new AdminUrlUtil(serverURL, 'rich-text-fields')
await page.goto(url.list) // Navigate to rich-text list view
const table = page.locator('.list-controls ~ .table')
const lexicalCell = table.locator('.cell-lexicalCustomFields').first()
const lexicalHtmlCell = table.locator('.cell-lexicalCustomFields_html').first()
const entireRow = table.locator('.row-1').first()
// Make sure each of the 3 above are no larger than 300px in height:
expect((await lexicalCell.boundingBox()).height).toBeLessThanOrEqual(300)
expect((await lexicalHtmlCell.boundingBox()).height).toBeLessThanOrEqual(300)
expect((await entireRow.boundingBox()).height).toBeLessThanOrEqual(300)
})
})
describe('toolbar', () => {
test('should run url validation', async () => {