diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 7b3837a..3383351 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -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 diff --git a/tests/behat/atto_validateFocusStillOnEditorAfterDragging.feature b/tests/behat/atto_validateFocusStillOnEditorAfterDragging.feature index 618fbc0..0c797ba 100644 --- a/tests/behat/atto_validateFocusStillOnEditorAfterDragging.feature +++ b/tests/behat/atto_validateFocusStillOnEditorAfterDragging.feature @@ -20,7 +20,7 @@ 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: @@ -28,7 +28,7 @@ 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 click on MathType editor title bar + And I move the MathType editor And I wait "1" seconds And I set MathType formula to '12π' And I wait "1" seconds @@ -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 '12π'