Cypress добавляет подчеркивание во время выполнения тестов и выдает ошибку - Ошибка: не удается сопоставить ни один маршрут. Сегмент URL: '__' - PullRequest
0 голосов
/ 27 мая 2020

Когда cypress запускает тест, он открывает следующий URL-адрес -

http://localhost:4200/__/#/tests/integration\maintenance\service\edit.feature

и завершается с ошибкой -

An unhandled error occurred Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: '__'
Error: Cannot match any routes. URL Segment: '__'
    at ApplyRedirects.noMatchError (router.js:4295)
    at CatchSubscriber.selector (router.js:4259)
    at CatchSubscriber.error (catchError.js:29)
    at MapSubscriber._error (Subscriber.js:75)
    at MapSubscriber.error (Subscriber.js:55)
    at MapSubscriber._error (Subscriber.js:75)
    at MapSubscriber.error (Subscriber.js:55)
    at MapSubscriber._error (Subscriber.js:75)
    at MapSubscriber.error (Subscriber.js:55)
    at TapSubscriber._error (tap.js:56)
    at resolvePromise (zone-evergreen.js:797)
    at resolvePromise (zone-evergreen.js:754)
    at zone-evergreen.js:858
    at ZoneDelegate.invokeTask (zone-evergreen.js:391)
    at Object.onInvokeTask (core.js:39680)
    at ZoneDelegate.invokeTask (zone-evergreen.js:390)
    at Zone.runTask (zone-evergreen.js:168)
    at drainMicroTaskQueue (zone-evergreen.js:559)

Не знаю, откуда это и как отладить это. Так выглядит cypress.json -

{
    "baseUrl": "http://localhost:4200",
    "fileServerFolder": ".",
    "fixturesFolder": "./src/fixtures",
    "integrationFolder": "./src/integration",
    "modifyObstructiveCode": false,
    "pluginsFile": "./src/plugins/index",
    "supportFile": "./src/support/index.ts",
    "video": false,
    "videosFolder": "../../dist/cypress/apps/e2e/videos",
    "screenshotsFolder": "../../dist/cypress/apps/e2e/screenshots",
    "chromeWebSecurity": false,
    "testFiles": "**/*.feature",
    "numTestsKeptInMemory": 0,
    "env": {
        "auth_username": "1111",
        "auth_password": "2222",
        "RETRIES": 2
    }
}
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...