import {test, expect} from '../../fixtures/test' //
    counts down from the total to 1 — used in countdown lists, // "top N" rankings in reverse order, and procedures that work backwards. // The `reversed` boolean attribute and explicit `value` overrides on items // must survive so the displayed numbering stays correct after save/reload. test.describe('
      and mixed value attributes', () => { test.beforeEach(async ({page, rcePage}) => { await page.goto('/scenarios/basic') await rcePage.waitForEditor() }) async function setAndGet(page: any, html: string): Promise { return page.evaluate((content: string) => { // @ts-expect-error -- TinyMCE global window.tinymce.activeEditor.setContent(content) // @ts-expect-error -- TinyMCE global return window.tinymce.activeEditor.getContent() }, html) } test('
        items — all list items preserved', async ({page}) => { const content = await setAndGet( page, '
        1. Third place: Bronze
        2. Second place: Silver
        3. First place: Gold
        ', ) expect(content).toContain('Third place: Bronze') expect(content).toContain('First place: Gold') }) test('
          countdown — items preserved', async ({page}) => { const content = await setAndGet( page, '
          1. Item five
          2. Item four
          3. Item three
          ', ) expect(content).toContain('Item five') expect(content).toContain('Item three') }) test('
            with explicit li value overrides — items preserved', async ({page}) => { const content = await setAndGet( page, '
            1. Tenth step
            2. Eleventh step
            3. Twentieth step
            ', ) expect(content).toContain('Tenth step') expect(content).toContain('Eleventh step') expect(content).toContain('Twentieth step') }) test('
              — items preserved', async ({page}) => { const content = await setAndGet( page, '
              1. Option C
              2. Option B
              3. Option A
              ', ) expect(content).toContain('Option C') expect(content).toContain('Option A') }) })