GithubHelp home page GithubHelp logo

visual-knight / platform-community-edition Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 1.0 3.69 MB

Open source platform of Visual Knight (Community Edition)

TypeScript 69.73% JavaScript 0.90% HTML 12.90% Dockerfile 0.33% Shell 1.44% Handlebars 0.32% SCSS 14.38%
codeceptjs visual-knight visual-testing

platform-community-edition's People

Contributors

dependabot[bot] avatar elena-dev-thought avatar mitkotschimev avatar pashidlos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wooodhead

platform-community-edition's Issues

API. PayloadTooLargeError: request entity too large

When I send image around 100 KB
Example image
large

Error

api_1        | [Nest] 19   - 04/09/2020, 9:40 PM   [ExceptionsHandler] request entity too large +47937ms
api_1        | PayloadTooLargeError: request entity too large
api_1        |     at readStream (/api/node_modules/raw-body/index.js:155:17)
api_1        |     at getRawBody (/api/node_modules/raw-body/index.js:108:12)
api_1        |     at read (/api/node_modules/body-parser/lib/read.js:77:3)
api_1        |     at jsonParser (/api/node_modules/body-parser/lib/types/json.js:135:5)
api_1        |     at Layer.handle [as handle_request] (/api/node_modules/express/lib/router/layer.js:95:5)
api_1        |     at trim_prefix (/api/node_modules/express/lib/router/index.js:317:13)
api_1        |     at /api/node_modules/express/lib/router/index.js:284:7
api_1        |     at Function.process_params (/api/node_modules/express/lib/router/index.js:335:12)
api_1        |     at next (/api/node_modules/express/lib/router/index.js:275:10)
api_1        |     at expressInit (/api/node_modules/express/lib/middleware/init.js:40:5)

Temp workaround
https://stackoverflow.com/questions/52783959/nest-js-request-entity-too-large-payloadtoolargeerror-request-entity-too-larg

I guess it should be implemented as configuration setting

Cannot delete project that contains tests

Cannot reproduce for empty project

Steps

  • Create project
  • add at least one test
  • try removing it

Error

core.js:9110 ERROR Error: Uncaught (in promise): Error: GraphQL error: 
Invalid `prisma.project.delete()` invocation in
/api/webpack:/apps/api/src/app/project/project.service.ts:20:45

Error occurred during query execution:
InterpretationError("Error for binding \'3\': RelationViolation(RelationViolation { relation_name: \"ProjectToTest\", model_a_name: \"Project\", model_b_name: \"Test\" })")
Error: GraphQL error: 
Invalid `prisma.project.delete()` invocation in
/api/webpack:/apps/api/src/app/project/project.service.ts:20:45

Error occurred during query execution:
InterpretationError("Error for binding \'3\': RelationViolation(RelationViolation { relation_name: \"ProjectToTest\", model_a_name: \"Project\", model_b_name: \"Test\" })")
    at new ApolloError (bundle.esm.js:63)
    at Object.next (bundle.esm.js:1004)
    at notifySubscription (Observable.js:130)
    at onNotify (Observable.js:165)
    at SubscriptionObserver.next (Observable.js:219)
    at bundle.esm.js:866
    at Set.forEach (<anonymous>)
    at Object.next (bundle.esm.js:866)
    at notifySubscription (Observable.js:130)
    at onNotify (Observable.js:165)
    at SubscriptionObserver.next (Observable.js:219)
    at Object.next (bundle.esm.js:29)
    at notifySubscription (Observable.js:130)
    at onNotify (Observable.js:165)
    at SubscriptionObserver.next (Observable.js:219)
    at resolvePromise (zone-evergreen.js:797) [angular]
    at polyfills-es2015.js:3556:17 [angular]
    at SafeSubscriber._error (Observable.js:91) [angular]
    at SafeSubscriber.__tryOrUnsub (Subscriber.js:185) [angular]
    at SafeSubscriber.error (Subscriber.js:137) [angular]
    at Subscriber._error (Subscriber.js:75) [angular]
    at Subscriber.error (Subscriber.js:55) [angular]
    at vendor-es2015.js:167261:28 [angular]
    at Object.onInvoke (core.js:34201) [angular]
    at polyfills-es2015.js:3704:36 [angular]

Cannot install dependencies - npm fails with error

OS: WIndows 10
node: v10.16.0
npm: 6.9.0
prisma2: 2.0.0-preview016.1

Similar issue in prisma2: prisma/prisma#1232

npm log

PS C:\xxx> npm i

> [email protected] postinstall C:\xxx
> npm run generate:photon


> [email protected] generate:photon C:\xxx
> cd libs/api-interface && prisma2 generate

Error: Problem while parsing the query engine response at C:\xxx\node_modules\prisma2\query-engine-windows.exe. Please wait until the 'prisma query-engine' download completes!
SyntaxError: Unexpected token P in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.<anonymous> (C:\xxx\node_modules\prisma2\build\index.js:114955:25)
    at Generator.next (<anonymous>)
    at fulfilled (C:\xxx\node_modules\prisma2\build\index.js:114913:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

API. x-api-key header is not validated

Cannot reproduce if x-api-key header is not provided in request - Unauthorised error thrown

Steps:

mutation {
  invokeTestSession(
    project: "any"
    testname: "any"
    autoBaseline: false
    capabilities: {
      browserName: "Chrome",
      os: "Windows"
    }
    misMatchTolerance: 0.01
  )
}

  • set HTTP headers
{
  "x-api-key": "NOT_VALID"
}

Actual result:
No error is shown

Expected result:
Unauthorised error thrown

Cannot accept first screenshot as baseline - no accept or decline buttons are shown

Core library keep throwing error

TypeError: Cannot read property 'misMatchTolerance' of null

      at VisualKnightCore.<anonymous> (node_modules/@visual-knight/core/src/process-screenshot.ts:49:61)
      at fulfilled (node_modules/@visual-knight/core/lib/process-screenshot.js:4:58)

1

Expected result:

  • Error in console has link to test session where baseline needs to be accepted
  • Accept and decline buttons are present
  • Status is UNRESOLVED

Workaround for now
Set autoBaseline: true - current image is taken as baseline

Show tests only for specific project if it was selected from project list

As it's now tests for all projects are shown regardless /test?project_id url param

Steps:

  1. navigate to /project
  2. select any project

Actual result:
tests for all projects are shown

Expected result:
show tests only for specific project

@MitkoTschimev what do you think on this one?
was is as a part of functionality or it's something new?
should we also hide project filter in case project_id provided?

Create test pipelines with github actions

I am happy that the community is helping with this project and to bring better help for the PR's we need a QA pipeline which github actions will provide the easiest way

Cannot start api service

node v12.14.1
npm 6.13.4

Steps:

  1. clone repo
  2. npm i
  3. npx ng serve api
PS C:\work\platform-community-edition> npx ng serve api
Starting type checking service...
Using 6 workers with 2048MB memory limit
Type checking in progress...
Hash: 5875a0559989f54eca86
Built at: 04/07/2020 3:00:58 PM
Entrypoint main = main.js main.js.map
chunk {main} main.js, main.js.map (main) 107 KiB [entry] [rendered]
Debugger listening on ws://localhost:7777/7d635fbc-96ab-456f-af52-46b5df70172c
Debugger listening on ws://localhost:7777/7d635fbc-96ab-456f-af52-46b5df70172c
For help, see: https://nodejs.org/en/docs/inspector
[Nest] 20888   - 04/07/2020, 3:01 PM   [NestFactory] Starting Nest application...
[Nest] 20888   - 04/07/2020, 3:01 PM   [ExceptionHandler] Nest cannot export a provider/module that is not a part of the currently processed module (SharedModule). Please verify whether each exported unit is available in this particular context. +52ms
Error: Nest cannot export a provider/module that is not a part of the currently processed module (SharedModule). Please verify whether each exported unit is available in this particular context.
    at Module.validateExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:251:19)
    at Module.addCustomExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:235:43)
    at Module.addExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\module.js:221:25)
    at NestContainer.addExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\injector\container.js:112:16)
    at DependenciesScanner.insertExportedProvider (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:177:24)
    at C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:104:50
    at Array.forEach (<anonymous>)
    at DependenciesScanner.reflectExports (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:104:17)
    at DependenciesScanner.scanModulesForDependencies (C:\work\platform-community-edition\node_modules\@nestjs\core\scanner.js:57:18)
    at processTicksAndRejections (internal/process/task_queues.js:94:5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.