Spaces:
Running
Running
File size: 1,771 Bytes
1cbdba3 0715aa0 1cbdba3 0715aa0 1cbdba3 58bf1b1 0715aa0 58bf1b1 1cbdba3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
// Test the execution of the example workspaces
import { test, expect } from '@playwright/test';
import { Workspace } from './lynxkite';
test('LynxKite Graph Analytics example', async ({ page }) => {
const ws = await Workspace.open(page, "NetworkX demo");
expect(await ws.isErrorFree(process.env.CI? 2000: 1000)).toBeTruthy();
});
test('Pytorch example', async ({ page }) => {
const ws = await Workspace.open(page, "PyTorch demo");
expect(await ws.isErrorFree()).toBeTruthy();
});
test.fail('AIMO example', async ({ page }) => {
// Fails because of missing OPENAI_API_KEY
const ws = await Workspace.open(page, "AIMO");
expect(await ws.isErrorFree()).toBeTruthy();
});
test.fail('LynxScribe example', async ({ page }) => {
// Fails because of missing OPENAI_API_KEY
const ws = await Workspace.open(page, "LynxScribe demo");
expect(await ws.isErrorFree()).toBeTruthy();
});
test.fail('Graph RAG', async ({ page }) => {
// Fails due to some issue with ChromaDB
const ws = await Workspace.open(page, "Graph RAG");
expect(await ws.isErrorFree(process.env.CI? 2000: 500)).toBeTruthy();
});
test.fail('RAG chatbot app', async ({ page }) => {
// Fail due to all operation being unknown
const ws = await Workspace.open(page, "RAG chatbot app");
expect(await ws.isErrorFree()).toBeTruthy();
});
test.fail('night demo', async ({ page }) => {
// airlines.graphml file not found
// requires cugraph
const ws = await Workspace.open(page, "night demo");
expect(await ws.isErrorFree(process.env.CI? 10000: 500)).toBeTruthy();
});
test('Pillow example', async ({ page }) => {
const ws = await Workspace.open(page, "Image processing");
expect(await ws.isErrorFree()).toBeTruthy();
});
|