import {test, expect} from '../../fixtures/test' // Tab key inside a list item must indent to create a nested sub-list. // Canvas assignments and course content rely heavily on nested lists. test.describe('nested lists', () => { test.beforeEach(async ({page, rcePage}) => { await page.goto('/scenarios/basic') await rcePage.waitForEditor() await rcePage.contentFrame().locator('body').click() }) test('Tab inside a list item creates a nested list', async ({page, rcePage}) => { // Create a bulleted list with two items await page.evaluate(() => { // @ts-expect-error -- TinyMCE global window.tinymce.activeEditor.setContent('') }) // Click the second list item const secondItem = rcePage.contentFrame().locator('li').nth(1) await secondItem.click() await page.keyboard.press('Tab') const content = await rcePage.getContent() // Should contain a nested