You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While integrating with puppetter the stack trace is cool:
✖ suite › browser › signin › signin.ad › [monitoring, xx] Active Directory User - Rejected with valid user and invalid password Rejected promise returned by test
1 test failed
suite › browser › signin › signin.ad › [monitoring, xx] Active Directory User - Rejected with valid user and invalid password
/Users/giovanni/onelogin/platform/e2e-tests/node_modules/puppeteer/lib/helper.js:231
Rejected promise returned by test. Reason:
Error {
message: 'No node found for selector: button[type=submitss]',
}
assert (node_modules/puppeteer/lib/helper.js:231:11)
DOMWorld.click (node_modules/puppeteer/lib/DOMWorld.js:366:5)
Frame.<anonymous> (node_modules/puppeteer/lib/helper.js:110:27)
Page.click (node_modules/puppeteer/lib/Page.js:988:29)
click (test/suite/browser/signin/signin.ad.spec.js:42:16)
make: *** [test-xx] Error 1
But if we use the tap formatter, it returns the first element that is not so valuable: 'new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:561:28)' extracted from:
TAP version 13
# suite › browser › signin › signin.ad › [monitoring, xx] Active Directory User - Rejected with valid user and invalid password
not ok 1 - suite › browser › signin › signin.ad › [monitoring, xx] Active Directory User - Rejected with valid user and invalid password
---
name: AssertionError
message: Rejected promise returned by test
values:
'Rejected promise returned by test. Reason:': |-
TimeoutError {
message: 'waiting for selector "[data-testid="auth-username-screen"]" failed: timeout 30000ms exceeded',
}
at: 'new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:561:28)'
...
1..1
# tests 1
# pass 0
# fail 1
If the test line is immediately followed by an indented block beginning with /^\s+---/ and ending with /^\s+.../ that block will be interpreted as an inline YAML document. The YAML encodes a data structure that provides more detailed information about the preceding test.
Currently (2007/03/17) the format of the data structure represented by a YAML block has not been standardized. It is likely that whatever schema emerges will be able to capture the kind of forensic information about a test’s execution seen in the example above.
The YAML block following each failure gives additional information about the failure that may be displayed by the harness:
TAP version 13ok 1 - retrieving servers from the database# need to ping 6 serversok 2 - pinged diamondok 3 - pinged rubynot ok 4 - pinged saphire---message: 'hostname "saphire" unknown'severity: fail...ok 5 - pinged onyxnot ok 6 - pinged quartz---message: 'timeout'severity: fail...ok 7 - pinged gold1..7
Since spec mentioned it's a yaml block if you need to show extra info for stacktrace (at key), then we should use standard yaml multiline: key: >-
According to https://yaml-multiline.info/
While integrating with puppetter the stack trace is cool:
But if we use the
tap
formatter, it returns the first element that is not so valuable:'new WaitTask (node_modules/puppeteer/lib/DOMWorld.js:561:28)'
extracted from:instead
click (test/suite/browser/signin/signin.ad.spec.js:42:16)
The text was updated successfully, but these errors were encountered: