Create an admin with email: admin@example.com and password: 123456qt
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
Setup:
admin@example.com
and password:123456qt
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