Live: performance tests e2e part (#43915)
* #41993: live perf tests e2e part * #41993: added bash upgrade instructions * #41993: remove custom feature toggle * #41993: fix typo in 'integrationFolder'
This commit is contained in:
@@ -31,3 +31,11 @@ Cypress.Commands.add('getJSONFilesFromDir', (dirPath: string) => {
|
||||
relativePath: dirPath,
|
||||
});
|
||||
});
|
||||
|
||||
Cypress.Commands.add('startBenchmarking', (testName: string) => {
|
||||
return cy.task('startBenchmarking', { testName });
|
||||
});
|
||||
|
||||
Cypress.Commands.add('stopBenchmarking', (testName: string, appStats: Record<string, unknown>) => {
|
||||
return cy.task('stopBenchmarking', { testName, appStats });
|
||||
});
|
||||
|
||||
@@ -6,5 +6,7 @@ declare namespace Cypress {
|
||||
logToConsole(message: string, optional?: any): void;
|
||||
readProvisions(filePaths: string[]): Chainable;
|
||||
getJSONFilesFromDir(dirPath: string): Chainable;
|
||||
startBenchmarking(testName: string): void;
|
||||
stopBenchmarking(testName: string, appStats: Record<string, unknown>): void;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user