File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
packages/artillery/test/cloud-e2e/fargate Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 88 checkAggregateCounterSums
99} = require ( '../../helpers/expectations' ) ;
1010
11+ const path = require ( 'path' ) ;
12+
1113const A9_PATH = process . env . A9_PATH || 'artillery' ;
1214
1315before ( async ( ) => {
@@ -23,6 +25,20 @@ beforeEach(async (t) => {
2325 reportFilePath = generateTmpReportPath ( t . name , 'json' ) ;
2426} ) ;
2527
28+ test ( 'Playwright test in TypeScript (example)' , async ( t ) => {
29+ const scenarioPath = path . resolve (
30+ __dirname ,
31+ '../../../../../examples/browser-load-testing-playwright/browser-load-test.ts'
32+ ) ;
33+ const output =
34+ await $ `${ A9_PATH } run-fargate ${ scenarioPath } --record --tags ${ baseTags } ` ;
35+ t . ok ( output . stdout . includes ( 'Summary report' ) ) ;
36+ t . ok ( output . stdout . includes ( 'p99' ) ) ;
37+ t . ok ( output . stdout . includes ( 'vusers.completed' ) ) ;
38+ t . ok ( output . stdout . includes ( 'browser.page.FCP.https://www.artillery.io/' ) ) ;
39+ t . equal ( output . exitCode , 0 , 'CLI Exit Code should be 0' ) ;
40+ } ) ;
41+
2642test ( 'Kitchen Sink Test - multiple features together' , async ( t ) => {
2743 const scenarioPath = `${ __dirname } /fixtures/cli-kitchen-sink/kitchen-sink.yml` ;
2844 const dotEnvPath = `${ __dirname } /fixtures/cli-kitchen-sink/kitchen-sink-env` ;
You can’t perform that action at this time.
0 commit comments