Canner / WrenAI

🚀 An open-source SQL AI (Text-to-SQL) Agent that empowers data, product teams to chat with their data. 🤘
https://getwren.ai/oss
GNU Affero General Public License v3.0
2.04k stars 211 forks source link

feat(wren-ui/e2e): Add calculated fields CRUD test for E-commerce sample dataset #427

Closed fredalai closed 5 months ago

fredalai commented 5 months ago

Description

Tasks

Test

➜  wren-ui git:(feature/e2e-e-commerce) yarn test:e2e
yarn run v1.22.19
warning ../../../../package.json: No license field

warning ../../../../package.json: No license field
[WebServer]  ⚠ Invalid next.config.js options detected:
[WebServer]  ⚠     Unrecognized key(s) in object: 'lessVarsFilePath', 'lessVarsFilePathAppendToEndOfContent'
 ⚠ See more info here: https://nextjs.org/docs/messages/invalid-next-config
[WebServer]  ⚠ "next start" does not work with "output: standalone" configuration. Use "node .next/standalone/server.js" instead.

Running 37 tests using 1 worker
[setup db] › global.setup.ts:4:6 › create new database
creating new database...
model len:0
created successfully.
[cleanup db] › global.teardown.ts:4:6 › delete database
deleting test database...
deleted successfully.
  Slow test file: [chromium] › specs/connectSampleECommerce.spec.ts (2.0m)
  Slow test file: [chromium] › specs/connectSampleNBA.spec.ts (1.8m)
  Consider splitting slow test files to speed up parallel execution
  37 passed (4.3m)

To open last HTML report run:

  yarn playwright show-report

✨  Done in 259.57s.