fix: mount /apps and docker socket in PR workflow build-and-deploy-ci job (#41)
Reviewed-on: #41 Co-authored-by: David Gwilliam <dhgwilliam@gmail.com> Co-committed-by: David Gwilliam <dhgwilliam@gmail.com>
This commit was merged in pull request #41.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
import { prisma } from '@/lib/prisma';
|
||||
|
||||
const BASE_URL = process.env.CI ? 'https://euchre-ci.notsosm.art' : 'http://localhost:3000';
|
||||
|
||||
// Generate unique test account credentials
|
||||
function getTestCredentials() {
|
||||
const timestamp = Date.now();
|
||||
@@ -52,14 +54,14 @@ test.describe.serial('Account Lifecycle API Acceptance Test', () => {
|
||||
console.log('Test 1 - testEmail:', testEmail);
|
||||
|
||||
// Register via API
|
||||
const response = await request.post('http://localhost:3000/api/auth/sign-up/email', {
|
||||
const response = await request.post('/api/auth/sign-up/email', {
|
||||
data: {
|
||||
email: testEmail,
|
||||
password: testPassword,
|
||||
name: testName
|
||||
},
|
||||
headers: {
|
||||
'Origin': 'http://localhost:3000'
|
||||
'Origin': BASE_URL
|
||||
}
|
||||
});
|
||||
|
||||
@@ -96,13 +98,13 @@ test.describe.serial('Account Lifecycle API Acceptance Test', () => {
|
||||
}
|
||||
|
||||
// Login via API
|
||||
const response = await request.post('http://localhost:3000/api/auth/sign-in/email', {
|
||||
const response = await request.post('/api/auth/sign-in/email', {
|
||||
data: {
|
||||
email: testEmail,
|
||||
password: testPassword
|
||||
},
|
||||
headers: {
|
||||
'Origin': 'http://localhost:3000'
|
||||
'Origin': BASE_URL
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user