We are currently using Playwright for our API and E2E tests mostly on the UI navigation and Visual regression tests.
Has anyone had experience doing tests other the above specifically on the actual games?
Its mostly canvas / iframes so elements / locators are usually non-existent inside the canvas so a bit difficult to do some functional tests. Visual regression is also challenging as the results are usually random.
I am thinking of including more API tests such as checking if the balance is actually correctly reduced or added based on bets, etc
1 Like
I’ve done this before, and a lot depends on how the game is built. If it runs in a browser, browser automation tools can help, but detecting results might be tricky.
1 Like
Tried doing some API checks on a few canvas-heavy games recently, mostly to see if bets were affecting the balance right. It was tricky since the UI inside the canvas doesn’t expose much, but focusing on API calls worked pretty well. Even tried some spins on maxcasino and could track the balance updates perfectly without touching the visuals.
Can you give me an example of this please?