Running frontend-html end-to-end (e2e) tests locally

If you want to run the end-to-end tests for the frontend-html project you will have to make some changes in the files.

origam\test\tests_e2e\additionalConfig.js

Fill in the local database connection data.

const userName = "xx";
const password = "xx";
const backEndUrl = "https://localhost:44357";

const sqlDatabase = "origam-demo";
const sqlServer = "localhost";
const sqlPort = 1433;
const sqlUser = undefined;
const sqlPassword  = undefined;
const sqlOptions  = {trustedConnection: true};

module.exports = {userName, password, backEndUrl,sqlDatabase,sqlServer,sqlPort,sqlUser,sqlPassword,sqlOptions};

origam\test\tests_e2e\dbTools.js

Fill in the absolute path to the built origam-utils.dll executable.

async function executeProcedure(procedureName) {
  const script = `dotnet C:\\Repos\\origam\\backend\\origam-utils\\bin\\Debug\\net8.0\\origam-utils.dll run-sql-procedure --attempts 5 --delay 5000 --sql-command "${procedureName}"`;

origam\test\tests_e2e\package.json

Remove xvfb-run --auto-servernum from the test:e2e script.

  "scripts": {
    "test:e2e": "jest --runInBand  --config jest.config.js",

For the HTML Architect, we’re missing end to end tests. I’ll create a task topic to manage this — it’s very important to create a test base for this project. But first, we need to choose the technology for it, like whether we go with Playwright or choose Puppeteer, or maybe something different.

This is offtopic, becouse this topic is about frontend-html.

Anyway, one of the most promising technologies that we have been discussing here for a long time is Playwright. I personally recently tried to set up a Playwright infrastructure for HTML Architect, but I came across the fact that the state is held on BE, which makes it a bit complicated to use standard procedures. It can be solved, but so far I have not managed to get a budget for this action.

However, I am definitely ready to implement modern E2E for HTML Architect as soon as I receive an order.

Yes I agree this topic about frontend-html lets move discussion here

And about budget If I understood Tomáš correctly, he’s willing to allocate budget for this no problem there. The only question is the choice of technology, and I think it’s obvious that we’ll go with Playwright. Also, regarding the implementation if anything, I can take it on as well, in case you don’t have time or something comes up.