First Functional Test

We explore the definition of functional tests in wiki pages where specific features can be present or invoked by pragmas that begin with ►.

We will extend test.js to recognize pragmas as having special meanings expressed in sentence forms recognized by regular expressions. github

► see 1 panel

When new page json is loaded the pragmas present will be added to the todo queue where they will be performed until exhausted.

► drop functional-testing@ward.dojo.fed.wiki

► drop functional-testing@petedaguru.dojo.fed.wiki

I corrected the spelling above, peta ⇒ pete. I will make test.js ride through both versions with some grace.

deno run --allow-net --reload https://dobbs.github.io/wiki-21/samples/headless/core/test.js first-functional-test@ward.dojo.fed.wiki

The drag and drop from one tab to another has been notoriously difficult to test, but not here.

► see 2 panels

Plugin load failures are recorded in our cache of loaded plugins. Here we check that cache and see the error messages.

► see markdown plugin

► see code plugin

Some pragma report what the test.js sees and understands.

► show lineup

► show magic

► show wizardry