* feat: model hub revamp UI * chore: model description - consistent markdown css * chore: add model versions dropdown * chore: integrate APIs - model sources * chore: update model display name * chore: lint fix * chore: page transition animation * feat: model search dropdown - deeplink * chore: bump cortex version * chore: add remote model sources * chore: model download state * chore: fix model metadata label * chore: polish model detail page markdown * test: fix test cases * chore: initialize default Hub model sources * chore: fix model stats * chore: clean up click outside and inside hooks * feat: change hub banner * chore: lint fix * chore: fix css long model id
26 lines
693 B
TypeScript
26 lines
693 B
TypeScript
import { test, appInfo, page, TIMEOUT } from '../config/fixtures'
|
|
import { expect } from '@playwright/test'
|
|
|
|
test.beforeAll(async () => {
|
|
expect(appInfo).toMatchObject({
|
|
asar: true,
|
|
executable: expect.anything(),
|
|
main: expect.anything(),
|
|
name: 'jan',
|
|
packageJson: expect.objectContaining({ name: 'jan' }),
|
|
platform: process.platform,
|
|
resourcesDir: expect.anything(),
|
|
})
|
|
})
|
|
|
|
test('explores hub', async ({ hubPage }) => {
|
|
await hubPage.navigateByMenu()
|
|
await hubPage.verifyContainerVisible()
|
|
await hubPage.scrollToBottom()
|
|
const useModelBtn = page.getByTestId(/^setup-btn/).first()
|
|
|
|
await expect(useModelBtn).toBeVisible({
|
|
timeout: TIMEOUT,
|
|
})
|
|
})
|