fix: restore full test suite

Separate the internal API and nginx ports, align browser BDD fixtures with tenant and Go Loose requirements, and correct the invitation outcome interaction order.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Daniel Noulet 2026-10-02 23:41:40 +02:00
parent 0de20d20f5
commit 660d5291ec
8 changed files with 44 additions and 8 deletions

29
bdd/run-tests.js Normal file
View file

@ -0,0 +1,29 @@
import { spawn } from "node:child_process";
import http from "node:http";
const authorizationServer = http.createServer((request, response) => {
response.setHeader("Content-Type", "application/json");
response.end(
JSON.stringify({
allowed: true,
tenant_slug: "ypto",
application_slug: "guess",
api_key_name: "bdd",
}),
);
});
authorizationServer.listen(18081, "127.0.0.1", () => {
const cucumber = spawn("cucumber-js", ["--config", "cucumber.mjs"], {
stdio: "inherit",
});
cucumber.on("exit", (code, signal) => {
authorizationServer.close(() => {
if (signal) {
process.kill(process.pid, signal);
} else {
process.exit(code ?? 1);
}
});
});
});