import { test, expect } from '@playwright/test'

test('不显示底部', async ({ page }) => {
  page.on('pageerror', (exception) => expect(exception).toBeNull())
  await page.goto('modal#showFooter')

  const modal = page.locator('.tiny-modal.active')
  await page.getByRole('button', { name: '不显示底部' }).click()
  await expect(modal.locator('.tiny-modal__footer')).not.toBeVisible()
})
