shweta-kumaran / CastNXTfall24

0 stars 2 forks source link

Implement cucumber steps for Admin features #99

Closed rahulb99 closed 6 days ago

rahulb99 commented 1 week ago

Setup:

  1. Create an admin with email: admin@example.com and password: 123456qt
  2. Create an event:
Event title Event description Date State Location Category Paid
Miu Miu Miu Miu showcase 2024-12-19 New York Albany Fashion Yes

Increase timeouts in the scripts if tests are failing, or run rails webpacker:install && rails webpacker:compile before running the tests.

Run these tests using the VSCode Jest extension or yarn test spec/features

The reason we can't use axios requests to create this data is because the selenium webdriver creates isolated web session, so only way maintaining background state is to write this data into a DB, which our app has access to.

Alternatively, we can implement these background steps inside our browser automation scripts itself. <-- Future work