Skip to content

Commit

Permalink
test: MTMOODLE-100
Browse files Browse the repository at this point in the history
  • Loading branch information
dadalid-at-wiris authored Oct 4, 2024
1 parent f30a8c2 commit 633d188
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,19 +236,19 @@ jobs:
run: |
case "${{ matrix.moodle-branch }}" in
"MOODLE_38_STABLE"|"MOODLE_39_STABLE"|"MOODLE_311_STABLE")
TAG="@3.x_atto"
TAG="@3.x_atto${{ github.event.inputs.tags }}"
;;
"MOODLE_400_STABLE")
TAG="@4.0_atto"
TAG="@4.0_atto${{ github.event.inputs.tags }}"
;;
"MOODLE_401_STABLE"|"MOODLE_402_STABLE"|"MOODLE_403_STABLE"|"MOODLE_404_STABLE"|"main")
TAG="@4.x_atto"
TAG="@4.x_atto${{ github.event.inputs.tags }}"
;;
*)
TAG="@atto"
TAG="@atto${{ github.event.inputs.tags }}"
;;
esac
moodle-plugin-ci behat --tags=$TAG${{ github.event.inputs.tags }} --profile ${{ matrix.browser }} --auto-rerun=2 --verbose -vvv
moodle-plugin-ci behat --tags=$TAG --profile ${{ matrix.browser }} --auto-rerun=2 --verbose -vvv
- name: Upload Behat Faildump
if: ${{ failure() && steps.behat.outcome == 'failure' }}
uses: actions/upload-artifact@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ Feature: Modal window focus
And I log in as "admin"

@javascript @4.x @4.x_atto
Scenario: MTMOODLE-100 - Insert formula after moving modal window
Scenario: - Insert formula after moving modal window
And I am on "Course 1" course homepage with editing mode on
And I add a "Page" to section "0" using the activity chooser
And I set the following fields to these values:
| Name | Test MathType for Atto on Moodle |
And I press "MathType" in "Page content" field in Atto editor
And I wait until MathType editor is displayed
And I wait "2" seconds
And I click on MathType editor title bar
And I move the MathType editor
And I wait "1" seconds
And I set MathType formula to '<math><mfrac><mn>1</mn><msqrt><mn>2</mn><mi>&#x3c0;</mi></msqrt></mfrac></math>'
And I wait "1" seconds
Expand All @@ -47,6 +47,9 @@ Feature: Modal window focus
And I press "MathType" in "Page content" field in Atto editor
And I wait until MathType editor is displayed
And I wait "2" seconds
# And I move the MathType editor
# TODO: This is not compatible with Moodle 3.8 / PHP 7.4 firefox since moodle ci downloads an old version
# of Selenium. Once it is fixed by them, we can change the "click" by the "move"
And I click on MathType editor title bar
And I wait "1" seconds
And I set MathType formula to '<math><mfrac><mn>1</mn><msqrt><mn>2</mn><mi>&#x3c0;</mi></msqrt></mfrac></math>'
Expand Down

0 comments on commit 633d188

Please sign in to comment.