[chrome 107.0.5304.110 linux #0-29] Running: chrome (v107.0.5304.110) on linux[chrome 107.0.5304.110 linux #0-29] Session ID: 3186fb5abffbcf8fa6cf6bd2d23597bc[chrome 107.0.5304.110 linux #0-29][chrome 107.0.5304.110 linux #0-29] » file:///e2e/load-save-session.e2e-spec.ts[chrome 107.0.5304.110 linux #0-29] ngHyd − save and load sessions[chrome 107.0.5304.110 linux #0-29] ✓ when loading session-6-calc.test.json file from home page, 6 calculators should be loaded[chrome 107.0.5304.110 linux #0-29] ✓ when loading session-optional-params.test.json file from home page, the calculator should be loaded[chrome 107.0.5304.110 linux #0-29] ✓ when saving a calculator, the current parameter values should be found in the file[chrome 107.0.5304.110 linux #0-29] ✖ select value must be recovered when loading a session file[chrome 107.0.5304.110 linux #0-29][chrome 107.0.5304.110 linux #0-29] 3 passing (1m 0.1s)[chrome 107.0.5304.110 linux #0-29] 1 failing[chrome 107.0.5304.110 linux #0-29][chrome 107.0.5304.110 linux #0-29] 1) ngHyd − save and load sessions select value must be recovered when loading a session file[chrome 107.0.5304.110 linux #0-29] TypeError: The "path" argument must be of type string. Received undefined[chrome 107.0.5304.110 linux #0-29] error properties: Object({ code: 'ERR_INVALID_ARG_TYPE' })[chrome 107.0.5304.110 linux #0-29] at new NodeError (node:internal/errors:393:5)[chrome 107.0.5304.110 linux #0-29] at validateString (node:internal/validators:163:11)[chrome 107.0.5304.110 linux #0-29] at Object.resolve (node:path:1098:7)[chrome 107.0.5304.110 linux #0-29] at SideNav.<anonymous> (/builds/cassiopee/nghyd/e2e/sidenav.po.ts:61:35)[chrome 107.0.5304.110 linux #0-29] at step (/builds/cassiopee/nghyd/e2e/sidenav.po.ts:33:23)[chrome 107.0.5304.110 linux #0-29] at Object.next (/builds/cassiopee/nghyd/e2e/sidenav.po.ts:14:53)[chrome 107.0.5304.110 linux #0-29] at /builds/cassiopee/nghyd/e2e/sidenav.po.ts:8:71[chrome 107.0.5304.110 linux #0-29] at new Promise (<anonymous>)[chrome 107.0.5304.110 linux #0-29] at __awaiter (/builds/cassiopee/nghyd/e2e/sidenav.po.ts:4:12)[chrome 107.0.5304.110 linux #0-29] at SideNav.loadSessionFile (/builds/cassiopee/nghyd/e2e/sidenav.po.ts:133:16)
Ce doit un point du test où il faudrait rallonger le temps d'attente.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
[chrome 107.0.5304.110 linux #0-29] ✖ when saving a calculator, the current parameter values should be found in the file[chrome 107.0.5304.110 linux #0-29] ✖ select value must be recovered when loading a session file
[0-55] RUNNING in chrome - file:///e2e/solveur.e2e-spec.ts[0-55] 2023-12-13T14:26:08.173Z WARN webdriver: Request failed with status 400 due to element not interactable[0-55] (Session info: headless chrome=107.0.5304.110)[0-55] 2023-12-13T14:26:08.183Z WARN webdriver: Request failed with status 400 due to element not interactable[0-55] (Session info: headless chrome=107.0.5304.110)[0-55] 2023-12-13T14:26:08.192Z WARN webdriver: Request failed with status 400 due to element not interactable[0-55] (Session info: headless chrome=107.0.5304.110)[0-55] 2023-12-13T14:26:08.242Z ERROR webdriver: Request failed with status 400 due to element not interactable: element not interactable[0-55] (Session info: headless chrome=107.0.5304.110)[0-55] Error in "Solveur - nghyd#601 without empty fields option check removing and recreating solver without empty fields option fills inputs"element not interactable: element not interactable (Session info: headless chrome=107.0.5304.110) at processTicksAndRejections (node:internal/process/task_queues:95:5)[0-55] FAILED in chrome - file:///e2e/solveur.e2e-spec.ts
[0-57] 2023-12-13T04:46:55.753Z WARN webdriver: Request failed with status 400 due to element click intercepted: Element <mat-checkbox _ngcontent-xcj-c387="" id="cb_emptyFields" name="emptyFields" class="mat-checkbox wrapped-checkbox mat-accent ng-untouched ng-pristine ng-valid mat-checkbox-checked" ng-reflect-id="cb_emptyFields" ng-reflect-name="emptyFields" ng-reflect-model="true" ng-reflect-options="[object Object]">...</mat-checkbox> is not clickable at point (392, 301). Other element would receive the click: <div class="cdk-overlay-backdrop cdk-overlay-transparent-backdrop cdk-overlay-backdrop-showing"></div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] 2023-12-13T04:46:56.813Z WARN webdriver: Request failed with status 400 due to element click intercepted: Element <mat-checkbox _ngcontent-xcj-c387="" id="cb_emptyFields" name="emptyFields" class="mat-checkbox wrapped-checkbox mat-accent ng-untouched ng-pristine ng-valid mat-checkbox-checked" ng-reflect-id="cb_emptyFields" ng-reflect-name="emptyFields" ng-reflect-model="true" ng-reflect-options="[object Object]">...</mat-checkbox> is not clickable at point (392, 301). Other element would receive the click: <div class="cdk-overlay-backdrop cdk-overlay-transparent-backdrop cdk-overlay-backdrop-showing"></div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] 2023-12-13T04:47:01.757Z WARN webdriver: Request failed with status 400 due to element click intercepted: Element <button _ngcontent-xcj-c358="" type="submit" id="trigger-calculate" mat-raised-button="" color="accent" name="Calculer" class="mat-focus-indicator mat-raised-button mat-button-base mat-accent mat-button-disabled" ng-reflect-color="accent" ng-reflect-disabled="true" disabled="true">...</button> is not clickable at point (392, 482). Other element would receive the click: <div class="mat-form-field-wrapper ng-tns-c105-22">...</div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] 2023-12-13T04:47:02.852Z WARN webdriver: Request failed with status 400 due to element click intercepted: Element <button _ngcontent-xcj-c358="" type="submit" id="trigger-calculate" mat-raised-button="" color="accent" name="Calculer" class="mat-focus-indicator mat-raised-button mat-button-base mat-accent mat-button-disabled" ng-reflect-color="accent" ng-reflect-disabled="true" disabled="true">...</button> is not clickable at point (392, 482). Other element would receive the click: <div class="mat-form-field-wrapper ng-tns-c105-22">...</div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] 2023-12-13T04:47:03.929Z WARN webdriver: Request failed with status 400 due to element click intercepted: Element <button _ngcontent-xcj-c358="" type="submit" id="trigger-calculate" mat-raised-button="" color="accent" name="Calculer" class="mat-focus-indicator mat-raised-button mat-button-base mat-accent mat-button-disabled" ng-reflect-color="accent" ng-reflect-disabled="true" disabled="true">...</button> is not clickable at point (392, 482). Other element would receive the click: <div class="mat-form-field-wrapper ng-tns-c105-22">...</div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] 2023-12-13T04:47:05.008Z ERROR webdriver: Request failed with status 400 due to element click intercepted: element click intercepted: Element <button _ngcontent-xcj-c358="" type="submit" id="trigger-calculate" mat-raised-button="" color="accent" name="Calculer" class="mat-focus-indicator mat-raised-button mat-button-base mat-accent mat-button-disabled" ng-reflect-color="accent" ng-reflect-disabled="true" disabled="true">...</button> is not clickable at point (392, 482). Other element would receive the click: <div class="mat-form-field-wrapper ng-tns-c105-22">...</div>[0-57] (Session info: headless chrome=107.0.5304.110)[0-57] Error in "Check translation variables in results"element click intercepted: element click intercepted: Element <button _ngcontent-xcj-c358="" type="submit" id="trigger-calculate" mat-raised-button="" color="accent" name="Calculer" class="mat-focus-indicator mat-raised-button mat-button-base mat-accent mat-button-disabled" ng-reflect-color="accent" ng-reflect-disabled="true" disabled="true">...</button> is not clickable at point (392, 482). Other element would receive the click: <div class="mat-form-field-wrapper ng-tns-c105-22">...</div> (Session info: headless chrome=107.0.5304.110) at processTicksAndRejections (node:internal/process/task_queues:95:5)[0-57] FAILED in chrome - file:///e2e/translation.e2e-spec.ts
[0-7] Error in "ngHyd − check translation of all calculators
stale element reference: The element with reference ELEMENT-283 is stale; either the element is no longer attached to the DOM, it is not in the current frame context, or the document has been refreshed
[0-14] Error in "modules diagram - check click on a module opens matching calculator"
[0-7] 2024-01-19T09:29:15.769Z INFO devtools: COMMAND findElement("css selector", "#side-nav-empty-session")[0-7] 2024-01-19T09:29:15.770Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-19' }[0-7] 2024-01-19T09:29:15.772Z INFO devtools: COMMAND elementClick("ELEMENT-19")[0-7] 2024-01-19T09:29:15.811Z INFO devtools: RESULT null[0-7] 2024-01-19T09:29:16.014Z INFO devtools: COMMAND findElement("css selector", "button#confirm-new-session")[0-7] 2024-01-19T09:29:16.015Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-20' }[0-7] 2024-01-19T09:29:16.018Z INFO devtools: COMMAND elementClick("ELEMENT-20")[0-7] 2024-01-19T09:29:16.041Z INFO devtools: RESULT null[0-7] 2024-01-19T09:29:16.046Z INFO devtools: COMMAND findElement("css selector", "#new-calculator")[0-7] 2024-01-19T09:29:16.047Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-21' }[0-7] 2024-01-19T09:29:16.175Z INFO devtools: COMMAND findElements("css selector", "#new-calculator")[0-7] 2024-01-19T09:29:16.181Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:16.183Z INFO devtools: COMMAND findElement("css selector", "#create-calc-4")[0-7] 2024-01-19T09:29:16.184Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-22' }[0-7] 2024-01-19T09:29:16.186Z INFO devtools: COMMAND elementClick("ELEMENT-22")[0-7] 2024-01-19T09:29:16.201Z INFO devtools: RESULT null[0-7] 2024-01-19T09:29:16.704Z INFO devtools: COMMAND findElement("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:16.705Z INFO devtools: RESULT Error: Element with selector "button#trigger-calculate" not found[0-7] at DevToolsDriver.findElement (file:///workspaces/nghyd/node_modules/devtools/build/utils.js:98:16)[0-7] at processTicksAndRejections (node:internal/process/task_queues:95:5)[0-7] at async Browser.wrappedCommand (file:///workspaces/nghyd/node_modules/devtools/build/devtoolsdriver.js:127:26)[0-7] at async Browser.wrapCommandFn (file:///workspaces/nghyd/node_modules/@wdio/utils/build/shim.js:72:29)[0-7] at async Browser.$ (file:///workspaces/nghyd/node_modules/webdriverio/build/commands/browser/$.js:74:17)[0-7] at async Browser.wrapCommandFn (file:///workspaces/nghyd/node_modules/@wdio/utils/build/shim.js:72:29)[0-7] 2024-01-19T09:29:16.707Z DEBUG webdriverio: command getAttribute was called on an element ("button#trigger-calculate") that wasn't found, waiting for it...[0-7] 2024-01-19T09:29:16.710Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:16.714Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:17.213Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:17.218Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:17.716Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:17.736Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:18.219Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:18.228Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:18.716Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:18.735Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:19.217Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:19.236Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:19.716Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:19.723Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:20.216Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:20.228Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:20.711Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:20.717Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:21.212Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:21.220Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:21.710Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:21.715Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:22.217Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:22.236Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:22.716Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:22.726Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:23.211Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:23.216Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:23.712Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:23.718Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:24.217Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:24.236Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:24.711Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:24.716Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:25.217Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:25.226Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:25.711Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:25.715Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:26.212Z INFO devtools: COMMAND findElements("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:26.216Z INFO devtools: RESULT [][0-7] Error in "ngHyd − check translation of all calculators language English − − check translations of calculator type [4]"Error: Can't call getAttribute on element with selector "button#trigger-calculate" because element wasn't found[0-7] 2024-01-19T09:29:26.739Z INFO devtools: COMMAND findElement("css selector", "#new-calculator")[0-7] 2024-01-19T09:29:26.740Z INFO devtools: RESULT Error: Element with selector "#new-calculator" not found[0-7] at DevToolsDriver.findElement (file:///workspaces/nghyd/node_modules/devtools/build/utils.js:98:16)[0-7] at processTicksAndRejections (node:internal/process/task_queues:95:5)[0-7] at async Browser.wrappedCommand (file:///workspaces/nghyd/node_modules/devtools/build/devtoolsdriver.js:127:26)[0-7] at async Browser.wrapCommandFn (file:///workspaces/nghyd/node_modules/@wdio/utils/build/shim.js:72:29)[0-7] at async Browser.$ (file:///workspaces/nghyd/node_modules/webdriverio/build/commands/browser/$.js:74:17)[0-7] at async Browser.wrapCommandFn (file:///workspaces/nghyd/node_modules/@wdio/utils/build/shim.js:72:29)[0-7] 2024-01-19T09:29:26.842Z INFO devtools: COMMAND findElements("css selector", "#new-calculator")[0-7] 2024-01-19T09:29:26.847Z INFO devtools: RESULT [][0-7] 2024-01-19T09:29:26.848Z INFO devtools: COMMAND findElement("css selector", "#create-calc-5")[0-7] 2024-01-19T09:29:26.849Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-23' }[0-7] 2024-01-19T09:29:26.851Z INFO devtools: COMMAND elementClick("ELEMENT-23")[0-7] 2024-01-19T09:29:26.868Z INFO devtools: RESULT null[0-7] 2024-01-19T09:29:27.372Z INFO devtools: COMMAND findElement("css selector", "button#trigger-calculate")[0-7] 2024-01-19T09:29:27.373Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-24' }[0-7] 2024-01-19T09:29:27.376Z INFO devtools: COMMAND getElementAttribute("ELEMENT-24", "<Screenshot[base64]>")[0-7] 2024-01-19T09:29:27.379Z INFO devtools: RESULT true
L'erreur apparaît aléatoirement indépendamment du type de module ouvert par la commande COMMAND findElement("css selector", "#create-calc-...").
J'ai ralongé à 1000 ms au lieu de 500 ms le temps d'attente entre le click de création du module et COMMAND findElement("css selector", "button#trigger-calculate") et ça ne change rien au problème.
[0-14] 2024-01-19T10:12:03.321Z INFO devtools: COMMAND findElement("css selector", "#side-nav-diagram")[0-14] 2024-01-19T10:12:03.322Z INFO devtools: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-5' }[0-14] 2024-01-19T10:12:03.821Z INFO devtools: COMMAND elementClick("ELEMENT-5")[0-14] 2024-01-19T10:12:03.847Z INFO devtools: RESULT null[0-14] 2024-01-19T10:12:04.050Z INFO devtools: COMMAND findElements("css selector", "g.node.default")[0-14] 2024-01-19T10:12:04.058Z INFO devtools: RESULT [[0-14] { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-6' },[0-14] { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-7' },[0-14] { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-8' },[0-14] { 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT-9' }[0-14] ][0-14] 2024-01-19T10:12:04.063Z INFO devtools: COMMAND getElementAttribute("ELEMENT-6", "id")[0-14] 2024-01-19T10:12:04.067Z INFO devtools: RESULT flowchart-d3l4MG-86[0-14] 2024-01-19T10:12:04.069Z INFO devtools: COMMAND elementClick("ELEMENT-6")[0-14] 2024-01-19T10:12:04.095Z INFO devtools: RESULT null[0-14] 2024-01-19T10:12:04.297Z INFO devtools: COMMAND getUrl()[0-14] 2024-01-19T10:12:04.300Z INFO devtools: RESULT http://localhost:4200/#/diagram[0-14] Error in "modules diagram - check click on a module opens matching calculator"error properties: Object({ matcherResult: Object({ message: 'expect(received).toContain(expected) // indexOfExpected substring: "/#/calculator/d3l4MG"Received string: "http://localhost:4200/#/diagram"', pass: false }) })
Le test crée un module prébarrage, ouvre la page des diagramme, clique sur le prébarrage sur le diagramme et vérifie que la page est redirigé vers le module en vérifiant l'URL de cette dernière.
Ca marche correctement en reproduisant le test à la main.