Skip to content

Integration/e2e testing doubts #762

Answered by daKmoR
Tansito asked this question in Q&A
Oct 23, 2020 · 3 comments · 4 replies
Discussion options

You must be logged in to vote

if you have a state property for those pages like

<app-index page="about">

then you could test that.

However, it seems more like you want to have end to end testing which is a browser actually opening your running application and you do some expects on what the browser sees.

for that using for example playwright + node moch seems more appropriate.

see some examples at the playwright homepage
https://playwright.dev/#version=v1.5.1&path=docs%2Ftest-runners.md&q=test-runners

the way that would work with web dev server would be to run those in parallel (for example with https://www.npmjs.com/package/concurrently)

"scripts": {
  "e2e": "concurrently \"web-dev-server\" \"node e2etest.js\"",
}

T…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by Tansito
Comment options

You must be logged in to vote
2 replies
@Tansito
Comment options

@WickyNilliams
Comment options

Comment options

You must be logged in to vote
2 replies
@LarsDenBakker
Comment options

@Tansito
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants