Replies: 1 comment 5 replies
-
|
Have you set your base_url? I am on my phone and cannot easily link to it, but the information for the base url is in the README. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am brand-new on wallaby.
It looked very nice to me, so I added it to my Phoenix-application, which uses Ecto.
I am using the chrome-driver.
I was able to create a feature test, which seems to start correctly. I see the chrome-icon inside my dock blink shortly.
The test without assertion passed.
But when I tried to find a css element, it told me, there was none visible.
** (Wallaby.QueryError) Expected to find 1, visible element that matched the css 'h1' but 0, visible elements were found.
I used the take_snapshot function.
It showed a white, empty image.
I changed to a different route via visit().
But all routes returned the same empty snapshot image.
How can I find out, what’s going wrong.
I think, maybe I missed something when adding wallaby to my project.
Or could it be?: My Phoenix-App is running on port 4000. Do I have to specify the port somewhere?
here is my test
feature("foo", %{session: session}) do
session
|> visit("/")
|> take_screenshot()
|> find(Query.css("h1", text: "Welcome"))
end
Beta Was this translation helpful? Give feedback.
All reactions