chore: restricts character length in table cells (#4063)
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user