mirror of
https://github.com/wassname/talk.git
synced 2026-06-29 04:11:26 +08:00
20 lines
711 B
Bash
Executable File
20 lines
711 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# install selenium
|
|
selenium-standalone install --config=./selenium.config.js
|
|
|
|
# Init application
|
|
./bin/cli setup --defaults
|
|
|
|
# Creating Admin Test User
|
|
./bin/cli users create --flag_mode --email "admin@test.com" --password "testtest" --name "AdminTestUser" --role "ADMIN"
|
|
|
|
# Creating Moderator Test User
|
|
./bin/cli users create --flag_mode --email "moderator@test.com" --password "testtest" --name "ModeratorTestUser" --role "MODERATOR"
|
|
|
|
# Creating Commenter Test User
|
|
./bin/cli users create --flag_mode --email "commenter@test.com" --password "testtest" --name "CommenterTestUser"
|
|
|
|
# Start the server and write the PID to a file to be killed later.
|
|
./bin/cli --pid /tmp/talk-e2e.pid serve --jobs &
|