Skip to content

Replace static JavaScript fixtures for u2f

Mike Greiling requested to merge fix-u2f-fixtures into master

What does this MR do?

Generates HAML fixtures for frontend u2f tests dynamically.

Are there points in the code the reviewer needs to double check?

All builds should pass.

Why was this MR needed?

The fixtures used in u2f/authenticate_spec.js and u2f/register_spec.js are generated directly from a partial template and include inline <script> tags which can cause issues in certain test runners. These currently pass within Teaspoon, but only because of a quirk in the timing of the call to fixture.load. This MR changes the way the fixture is rendered, and scrubs out all inline script tags from the generated html.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Related to #24753 (closed)

Merge request reports