mirror of
https://github.com/iflytek/skillhub.git
synced 2026-08-27 11:14:59 +00:00
test(publish): scope zip picker in folder upload e2e
Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com>
This commit is contained in:
parent
0fbc55f917
commit
e1c18e8467
1 changed files with 3 additions and 1 deletions
|
|
@ -45,7 +45,9 @@ test.describe('Publish Flow UI (Real API)', () => {
|
|||
})
|
||||
await expect(namespaceTrigger).toContainText(`@${namespace.slug}`)
|
||||
|
||||
await page.locator('input[type="file"]').setInputFiles(packagePath)
|
||||
// The publish form also exposes a second file input for folder selection.
|
||||
// Scope this regression test to the existing ZIP picker.
|
||||
await page.locator('input[type="file"][accept*=".zip"]').setInputFiles(packagePath)
|
||||
await expect(page.getByText(path.basename(packagePath))).toBeVisible()
|
||||
const confirmButton = page.getByRole('button', { name: 'Confirm Publish' })
|
||||
await expect(confirmButton).toBeEnabled()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue