0

I'm working on a web-based multiplayer game. It's the usual "One person creates a game, others join" type flow. So I bring up multiple browsers to manually test the interaction.

Is there a way to do this with Gauge/Taiko? The alternative seems to be setting up an existing scenario in the database, which seems like a lot more work.

Thanks!

chris_st
  • 501
  • 7
  • 19

1 Answers1

1

you could use https://docs.taiko.dev/#openincognitowindow to simultaneously login different users as this opens a new incognito profile for each window. Testing can be done by switching between the windows using the name given when opening the window.

par
  • 817
  • 8
  • 21
  • That works, however 'switchTo' doesn't seem to be able to switch based on the window name you give 'openIncognitoWindow'. It will switch based on window title, so I set that, and it works fine. – chris_st May 21 '20 at 19:25
  • Do raise an issue here https://github.com/getgauge/taiko/issues, if you feel something is working differently – par May 22 '20 at 04:32