Skip to content
Snippets Groups Projects
Commit 6775f865 authored by Tim Hunt's avatar Tim Hunt
Browse files

Fix fact sheets on the CASchat screen.

parent 29776e5a
Branches
Tags
No related merge requests found
...@@ -35,7 +35,8 @@ class stack_exception extends moodle_exception { ...@@ -35,7 +35,8 @@ class stack_exception extends moodle_exception {
* @return string HTML ready to output. * @return string HTML ready to output.
*/ */
function stack_ouput_castext($castext) { function stack_ouput_castext($castext) {
return format_text(stack_maths::process_display_castext($castext)); return format_text(stack_maths::process_display_castext($castext),
FORMAT_HTML, array('noclean' => true));
} }
/** /**
......
@qtype @qtype_stack
Feature: STACK has build in documentation.
In order to learn Maxima code
As an admin
I need to use the CAS chat script.
Background:
Given I log in as "admin"
And I set up STACK using the PHPUnit configuration
And I navigate to "STACK" node in "Site administration > Plugins > Question types"
@javascript
Scenario: Navigate to the CAS chat script and evaluate something
When I follow "CAS chat script"
Then I should see "Test the connection to the CAS"
When I set the field "cas" to "1 + 1 = @ 1+1 @."
And I press "Send to the CAS"
Then I should see "1 + 1 = 22."
# The 22 seems to be someting to do with how MathJax renders the equation.
When I set the field "cas" to "[[facts:calc_int_methods_parts]]"
And I press "Send to the CAS"
And I follow "Integration by Parts"
Then I should see "or alternatively:"
...@@ -6,11 +6,11 @@ Feature: STACK has build in documentation. ...@@ -6,11 +6,11 @@ Feature: STACK has build in documentation.
Background: Background:
Given I log in as "admin" Given I log in as "admin"
And I navigate to "STACK" node in "Site administration > Plugins > Question types"
@javascript @javascript
Scenario: Navigate to the documentation Scenario: Navigate to the documentation
When I navigate to "STACK" node in "Site administration > Plugins > Question types" When I follow "Documentation for STACK"
And I follow "Documentation for STACK"
Then I should see "Welcome to the official user documentation for the STACK project." Then I should see "Welcome to the official user documentation for the STACK project."
When I follow "Site map" When I follow "Site map"
Then I should see "Directory structure" Then I should see "Directory structure"
......
...@@ -6,12 +6,12 @@ Feature: STACK has a build in self-check. ...@@ -6,12 +6,12 @@ Feature: STACK has a build in self-check.
Background: Background:
Given I log in as "admin" Given I log in as "admin"
And I set up STACK using the PHPUnit configuration
And I navigate to "STACK" node in "Site administration > Plugins > Question types"
@javascript @javascript
Scenario: Run the STACK healthcheck Scenario: Run the STACK healthcheck
When I set up STACK using the PHPUnit configuration When I follow "healthcheck script"
And I navigate to "STACK" node in "Site administration > Plugins > Question types"
And I follow "healthcheck script"
Then I should see "STACK healthcheck" Then I should see "STACK healthcheck"
And I should see "CAS returned data as expected. You have a live connection to the CAS." And I should see "CAS returned data as expected. You have a live connection to the CAS."
And I should see "Correct and expected STACK-Maxima library version being used" And I should see "Correct and expected STACK-Maxima library version being used"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment