I’m curious what others have experienced in unit testing for client and browser app libraries?
In the past I’ve used http://nightwatchjs.org/ successfully. It does involve setting up the selenium server yet the test to go thru each browser you choose to test against.
Got further with testing! An instance of chrome is stood up each time for a test run. It then jumps to the solid login because the session
const session = await solid.auth.currentSession();
if (!session)
await solid.auth.login(idp);
else
alert(`Logged in as ${session.webId}`);
is run at the beginning to use the webId.
Does anyone know the id for the username and passwrd fields or any other way to find them? Hoping to automate the test thru this step so the rest of the tests are then possible
Your problem is to find id of username & password or to switch to the pop-up page?
I used selenium, and in this case , you have to switch to the new page/ handle