Skip to content

Conversation

@thomasltran
Copy link

Thomas Tran (thomastran) Giovanni Romero-Ruiz (gioromeroruiz) Nicholas Hess (hessnt30) Tim Vadney (vtim)

We got the errors below when running the tests:
Duck Duck Go search using basic Puppeteer
1) should be the correct url
✔ should have the correct page title
2) should have the page open

1 passing (7s)
2 failing

  1. Duck Duck Go search using basic Puppeteer
    should be the correct url:

    AssertionError: expected 'https://duckduckgo.com/' to deeply equal 'https://google.com/'

    • expected - actual

    -https://duckduckgo.com/
    +https://google.com/

    at Context. (test/search.js:23:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

  2. Duck Duck Go search using basic Puppeteer
    should have the page open:

    AssertionError: expected false to deeply equal true

    • expected - actual

    -false
    +true

    at Context. (test/search.js:31:42)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

For 1, the failing test can probably be fixed by changing the assertion to https://duckduckgo.com/ instead of google.
For 2, the test should be expecting that the page opens (which is the purpose of the automation), rather than it not being open.

@thomasltran
Copy link
Author

browserfile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant