csaf-poc / csaf_webview

Web app (module) to display a CSAF 2 document and to browse CSAF 2 ROLIE feeds. ⚠️ The web demo is often not allowed to access servers:
https://csaf-poc.github.io/csaf_webview/
1 stars 3 forks source link

Integrationtests are failing #49

Open ThomasJunk opened 5 months ago

ThomasJunk commented 5 months ago

Currently (Commit 51c6e756bf541c15bebb98b3cbcd907b80e87482) the integrationtests are failing.

And they do so for no obvious reason. I opened the application in the browser and the application does well. There are no hidden console errors or an indicator of what is happening.

I watched the recent changes - namely the contribution of @bernhard-herzog which the errors could not be attributed to.

Using npx playwright test --ui I took a look at the first failing test.

test("general collapsible content Revision history", async ({ page }) => {
  await page.goto("/");
  await page.locator('input[type="file"]').click();
  await page.locator('input[type="file"]').setInputFiles("./docs/bsi-2022-0001.json");

  await expect(page.getByRole("heading", { name: " Revision history" })).toBeVisible();
})

Translated to plain english there is nothing more going on than:

And the result in the headless browser looks like integrationtest

So the file seems to have been loaded but no rendering of a revision history nor general information took place.

The behavior in the browser looks correct.

integration2

For now I am at my wit's end.