Docmaps-Project / docmaps

Extensible protocol for document history metadata exchange, to enable trustworthy, rapid, open science, by and for preprint science communities.
MIT License
15 stars 1 forks source link

widget: Add end-to-end tests with Playwright #138

Closed andrewedstrom closed 10 months ago

andrewedstrom commented 10 months ago

Description

This PR adds a basic d3 graph to the widget for the purposes of determining what testing tool will play nicely with this tech stack.

The graph looks like this:

Screenshot 2023-10-30 at 9 23 27 PM

Clicking the button adds another node to the graph.

Screenshot 2023-10-30 at 9 24 45 PM

My hypothesis is that a testing strategy which works for this simple example will work for a more realistic scenario. But I wanted to prove out a testing strategy before implementing any docmap-specific logic so the docmap-specific logic can be TDD'd.

Related Issues

List any issues that are related to this pull request, such as bug reports or feature requests.

Checklist

Additional Information

Provide any additional information that might be helpful in understanding this pull request, such as screenshots, links to relevant research, or other context.