Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
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 :)


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.

  • 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)

  • User Avatar
    0
    ismcagdas created
    Support Team

    @larsfk

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

  • User Avatar
    0
    larsfk created

    Yes, the API and Angular is up and running

  • User Avatar
    1
    ismcagdas created
    Support Team