In #93, we added a fix so scenarios were rendered on Rails 6+. This involved converting the format from string to symbol. Unfortunately, there are a couple places in the codebase that perform comparisons on this value. Namely, the decision to include custom JS and CSS in the scenario.
Change
Correctly inject JS and CSS into HTML scenarios by using symbols in the comparison to detect HTML.
Context
In #93, we added a fix so scenarios were rendered on Rails 6+. This involved converting the format from string to symbol. Unfortunately, there are a couple places in the codebase that perform comparisons on this value. Namely, the decision to include custom JS and CSS in the scenario.
Change
Correctly inject JS and CSS into HTML scenarios by using symbols in the comparison to detect HTML.