Questions tagged [wallaby]

Concurrent browser tests with elixir

wallaby

https://github.com/keathley/wallaby

This is an integration test library for Elixir and Phoenix applications.

19 questions
3
votes
0 answers

how to login a user using Wallaby without going through the regular login process? (Setting cookies/sessions)

I would like to know how to login a user in the session without creating work around routes in the test enviornment or logging the user in through the standard user flow. Is there a way to set the cookie/session so that there is a current_user? Here…
Loading...
  • 863
  • 9
  • 21
2
votes
2 answers

How to handle redirects in Wallaby?

I have a feature test written like this: confirmation_page = visit(session, "/confirm/#{id}") confirmation_page |> click(link("Decline")) confirmation_page |> assert_text("You have declined.") However the test always fails, because in…
Ryosuke
  • 3,592
  • 1
  • 11
  • 28
2
votes
2 answers

How do I retrieve text from inside the html using wallaby/elixir?

I need to use the digits displayed in the HTML to make test with elixir/ wallaby. ex: class="app-add-installemnts-link">14903 1/3 How can I retrieve the number: 14903 1/3 Is there a function or a way to do this?
2
votes
2 answers

New users being created in test environment have their IDs continually incrementing using Wallaby/Phoenix

I'm new to Elixir/Phoenix so I'm not sure if this is working as expected or an issue I should address. I have a Phoenix app that I just started adding integration tests to. Having done this for a few days of setting up and testing the User…
Loading...
  • 863
  • 9
  • 21
2
votes
1 answer

Wallaby with headless Chrome crashes

I am developing an application based on Elixir and Phoenix which also uses the Wallaby application for HTTP based testing in a headless Chrome browser. Now recently I receive a rather unwieldy error message when executing my ExUnit tests: **…
aef
  • 4,498
  • 7
  • 26
  • 44
1
vote
1 answer

Wallaby Does Not Pass Dotenv Variables to Runner

I am trying to use Wallaby in conjunction with the dotenv-flow package. I currently have my wallaby.js config file setup like below: require("dotenv-flow").config() module.exports = function (wallaby) { return { files: [ 'api/*', …
1
vote
2 answers

How to get html page in wallaby

I try to run fin function but for some reason I get back nil. The item I search for have to be there, how can I get the html to see what went wrong?
Yoni S
  • 36
  • 1
  • 7
1
vote
2 answers

Wallaby Ecto.Registry.lookup error

I'm trying to get Wallaby working on a new Phoenix project. I've followed the setup instructions in the readme, but when I try to run a basic test I get an Ecto registry error: 1) test home page has welcome message (WallabyTestWeb.HomePageTest) …
marcdel
  • 23
  • 4
0
votes
0 answers

How can I take downloaded files from browser's cache into my code?

I would like to testing my site to ensure that some versions of documents and images are present when some user-agents are going to my site. I'm preparing now wallaby with geckodriver and chromedriver for the starting point of such testing. My main…
Dimitri
  • 623
  • 7
  • 14
0
votes
0 answers

Unable to backup or restore openstack and juju

I am in need of assistance, as the title says, I am unable to back my data up in any way. Once a node is corrupted and everything deletes I lost everything and unable to backup or restore I'm using MAAS 3.0 and Openstack wallaby. The way I use MAAS…
Esraa Alh
  • 146
  • 1
  • 3
0
votes
1 answer

CentOS 8 stream

dnf --enablerepo=centos-openstack-wallaby -y upgrade CentOS-8 - Ceph Nautilus 63 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'centos-ceph-nautilus': Cannot prepare internal mirrorlist: No URLs…
0
votes
0 answers

Docker/Wallaby - localhost refused to connect

I am trying to run my feature test using Wallaby but I keep getting the localhost refused to connect error. Here is my compose.yml: version: '2' services: app: image: hin101/phoenix:1.5.1 build: . restart: always ports: -…
Hinesh Patel
  • 1,161
  • 2
  • 7
  • 15
0
votes
0 answers

Configure Retry for Wallaby or ExUnit

Currently I'm developing browser tests but sometimes they are flaky so I want to add retry to those tests, Idk if there is an easy way to add retry to a project with Wallaby and ExUnit by configuration or if there is an library out there. Thanks
Daniel F Jaramillo
  • 413
  • 1
  • 5
  • 12
0
votes
1 answer

Elixir Wallaby crashes on mix test

I am trying to incorporate Wallaby into my phoenix app. I have followed the setup guide closely and made sure that phantomjs is properly installed, however on mix test I get the following error: ** (MatchError) no match of right hand side value: My…
DJN
  • 51
  • 9
0
votes
1 answer

How to rollback changes that has made in the database by wallaby automation browser

I have long test that call a lot of functions that test the all application. I looking for a way that in case of failure in the test, I can rollback the specific changes that the automation did on the test. For example: test "add user and login",…
Yoni S
  • 36
  • 1
  • 7
1
2