-
Notifications
You must be signed in to change notification settings - Fork 44
Create a test for broken links #175
Comments
These are not working because we haven't published the wiki articles! |
It seems the links themselves are broken, the appropriate links are: |
Creating a test which relies on an external service isn't great; I suggest we just make sure the links are deployed already / near the same time. Otherwise the tests can one day just spontaneously fail due to network errors (unreachable, DNS resolution, etc). |
IMO we will never be able to ensure that all the links are updated (and that a release is done) ahead of every article change (especially since other non-dev can be responsible for updating the wiki). |
I think adding a test will become every easier when we start translating our content. We will then have to move all our content to json or yaml or md files. We can then tell a GitHub Actions script to always parse those files, look for links, and validate them. I guess the same can be done with ts files. |
Do we truly want to test all links to the Internet? I can create a test that searches for links in our source code and test them all. I'm thinking maybe the test can have a whitelist of domains which its allowed to test. |
All links that are in our wallet - yes. Those will mostly point to our wiki / faq, but if they're in the UI, then it means that we've whitelisted them and we want them to work :) |
Many links aren't working right now (https://wiki.alephium.org/Desktop-Wallet-Guide.html#utxo-consolidation https://wiki.alephium.org/Desktop-Wallet-Guide.html#creating-a-mining-wallet-with-4-addresses).
Let's add a test to catch any broken link?
The text was updated successfully, but these errors were encountered: