ConusAI vendor v0.1.0-dev.20261013+85463d22
This commit is contained in:
parent
c3c6526952
commit
0da8a2a81b
@@ -61,13 +61,21 @@ test('an attachment moves the usage meter and is metered on the platform', async
|
||||
await expect
|
||||
.poll(async () => (await platformState()).usage.length, { timeout: 15_000 })
|
||||
.toBeGreaterThan(usageBefore)
|
||||
|
||||
// The attachment downloads through the app: the platform's blob URL needs the
|
||||
// deployment token, which the browser does not have.
|
||||
const href = await note.getByRole('link', { name: 'notes.txt' }).getAttribute('href')
|
||||
expect(href).toMatch(/^\/files\/[0-9a-f-]+$/)
|
||||
const download = await page.request.get(href ?? '')
|
||||
expect(download.status()).toBe(200)
|
||||
expect(await download.text()).toBe('sixteen bytes!!!')
|
||||
})
|
||||
|
||||
test('each optional module without its variables shows its enable card', async ({ page }) => {
|
||||
await page.goto('/')
|
||||
|
||||
await expect(page.getByText(/to enable this\.$/)).toHaveCount(5)
|
||||
await expect(page.getByText('Link Redis to enable this.')).toBeVisible()
|
||||
await expect(page.getByText('Link KV Store to enable this.')).toBeVisible()
|
||||
await expect(page.getByText(/uploads left this minute/)).toHaveCount(0)
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user