-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow2 integration test for QUAlibrate app
- Loading branch information
Showing
7 changed files
with
172 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
|
||
test('Workflow_3', { | ||
annotation: { | ||
type: 'Third User Workflow', | ||
description: 'Viewing Past Data', | ||
}, | ||
}, async ({ page }) => { | ||
|
||
// TODO | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { FullConfig } from '@playwright/test'; | ||
import { exec } from 'child_process'; | ||
|
||
async function globalSetup(config: FullConfig) { | ||
console.log('Starting QUAlibrate server...'); | ||
|
||
// Start the server as a child process | ||
const server = exec('qualibrate start', (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`Error starting server: ${error.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Server stderr: ${stderr}`); | ||
} | ||
console.log(`Server stdout: ${stdout}`); | ||
}); | ||
|
||
// Store server reference for teardown, if needed | ||
(global as any).__SERVER__ = server; | ||
} | ||
|
||
export default globalSetup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
async function globalTeardown() { | ||
console.log('Stopping QUAlibrate server...'); | ||
const server = (global as any).__SERVER__; | ||
if (server) { | ||
server.kill('SIGTERM'); | ||
} | ||
} | ||
|
||
export default globalTeardown; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters