* Update readme to reflect the change to playwright * Update test scripts * update README * update pipelines to run new script * update package.json scripts * dont include demo test in package.json * Add creation of blueprint test * Implement create test script Co-authored-by: Zeegaan <nge@umbraco.dk>
21 lines
471 B
JavaScript
21 lines
471 B
JavaScript
const fs = require('fs');
|
|
|
|
const args = process.argv.slice(2);
|
|
|
|
function generate(fileName) {
|
|
fs.writeFileSync(
|
|
`./tests/${fileName}.spec.ts`,
|
|
`import {test} from '@umbraco/playwright-testhelpers';
|
|
|
|
test.describe('New test file description', () => {
|
|
test.beforeEach(async ({page, umbracoApi}) => {
|
|
await umbracoApi.login();
|
|
});
|
|
|
|
test('New test', async ({page, umbracoApi, umbracoUi}) => {
|
|
});
|
|
});`
|
|
);
|
|
}
|
|
|
|
generate(args[0] || "newTest"); |