Base solution for your next web application
Open Closed

Front-end test for Aspnet Core 2.1 and Angular 6 #5956


User avatar
0
larsfk created

Hi!

I'm wondering about whats recommended for writing tests for front-end with Angular 6? Can't seem to find any information about it in the documentation.

Thank you :)

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @larsfk

    AspNet Zero doesn't have much UI tests but we are using e2e tests. You can check it here https://github.com/aspnetzero/aspnet-zero-core/tree/dev/angular/e2e.

    For more information you can check angular-cli's e2e test documents.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    larsfk created

    When running e2e I get this error:

    × should login as host admin - Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL. at ontimeout (timers.js:425:11) at tryOnTimeout (timers.js:289:5) at listOnTimeout (timers.js:252:5) at Timer.processTimers (timers.js:212:10)

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    ismcagdas created
    Support Team

    @larsfk

    Have you runned the *.Host project before running the e2e tests ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    larsfk created

    Yes, the API and Angular is up and running

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    1
    ismcagdas created
    Support Team
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)