Now that we have a real implementation of caching for the D8 version, we could stand to have some automated tests.
There are three kinds of project paths that are supported.
(1) The site-wide wildcard *
(2) A trailing wildcard, such as /node/*
(3) A specific path, such as /node/42
We could create one test for each of the three paths listed above.
For the site-wide *, create two or three pages , all of which should be affected when the path is enabled and disabled.
For the other tests, create three pages.
One page that should be affected when a certain project path is enabled or disabled.
A second page that includes the Optimizely snippet regardless of enabling / disabling the project path.
A third page that does not include the snippet regardless of enabling / disabling the path.
Comments
Comment #2
tz_earl commented