mirror of
https://github.com/CompassConnections/Compass.git
synced 2025-12-24 06:27:52 -05:00
* add firebase emulator, add registration script, add signup spec * Upgrade firebase emulator and make it pass the E2E tests --------- Co-authored-by: MartinBraquet <martin.braquet@gmail.com>
17 lines
444 B
TypeScript
17 lines
444 B
TypeScript
import axios from 'axios';
|
|
import { config } from '../tests/e2e/web/SPEC_CONFIG.js';
|
|
|
|
async function createAuth() {
|
|
const base = 'http://localhost:9099/identitytoolkit.googleapis.com/v1';
|
|
|
|
await axios.post(`${base}/accounts:signUp?key=fake-api-key`, {
|
|
email: config.USERS.DEV_1.EMAIL,
|
|
password: config.USERS.DEV_1.PASSWORD,
|
|
returnSecureToken: true
|
|
});
|
|
|
|
console.log('Auth created', config.USERS.DEV_1.EMAIL)
|
|
|
|
}
|
|
createAuth();
|