Skip to content

Commit

Permalink
Test behat of notification
Browse files Browse the repository at this point in the history
  • Loading branch information
prasanna-lmsace committed Sep 25, 2023
1 parent 99bbc04 commit fa42dd7
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 737 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ jobs:
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'pgsql'
- php: '8.0'
moodle-branch: 'MOODLE_402_STABLE'
database: 'mariadb'
# - php: '8.0'
# moodle-branch: 'MOODLE_402_STABLE'
# database: 'mariadb'
# - php: '8.0'
# moodle-branch: 'MOODLE_401_STABLE'
# database: 'mariadb'
Expand Down Expand Up @@ -76,47 +76,47 @@ jobs:
DB: ${{ matrix.database }}
MOODLE_BRANCH: ${{ matrix.moodle-branch }}

- name: PHP Lint
if: ${{ always() }}
run: moodle-plugin-ci phplint
# - name: PHP Lint
# if: ${{ always() }}
# run: moodle-plugin-ci phplint

- name: PHP Copy/Paste Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpcpd
# - name: PHP Copy/Paste Detector
# continue-on-error: true # This step will show errors but will not fail
# if: ${{ always() }}
# run: moodle-plugin-ci phpcpd

- name: PHP Mess Detector
continue-on-error: true # This step will show errors but will not fail
if: ${{ always() }}
run: moodle-plugin-ci phpmd
# - name: PHP Mess Detector
# continue-on-error: true # This step will show errors but will not fail
# if: ${{ always() }}
# run: moodle-plugin-ci phpmd

- name: Moodle Code Checker
if: ${{ always() }}
run: moodle-plugin-ci codechecker --max-warnings 0
# - name: Moodle Code Checker
# if: ${{ always() }}
# run: moodle-plugin-ci codechecker --max-warnings 0

- name: Moodle PHPDoc Checker
if: ${{ always() }}
run: moodle-plugin-ci phpdoc
# - name: Moodle PHPDoc Checker
# if: ${{ always() }}
# run: moodle-plugin-ci phpdoc

- name: Validating
if: ${{ always() }}
run: moodle-plugin-ci validate
# - name: Validating
# if: ${{ always() }}
# run: moodle-plugin-ci validate

- name: Check upgrade savepoints
if: ${{ always() }}
run: moodle-plugin-ci savepoints
# - name: Check upgrade savepoints
# if: ${{ always() }}
# run: moodle-plugin-ci savepoints

- name: Mustache Lint
if: ${{ always() }}
run: moodle-plugin-ci mustache || true
# - name: Mustache Lint
# if: ${{ always() }}
# run: moodle-plugin-ci mustache || true

- name: Grunt
if: ${{ always() }}
run: moodle-plugin-ci grunt --max-lint-warnings 0
# - name: Grunt
# if: ${{ always() }}
# run: moodle-plugin-ci grunt --max-lint-warnings 0

- name: PHPUnit tests
if: ${{ always() }}
run: moodle-plugin-ci phpunit --fail-on-warning
# - name: PHPUnit tests
# if: ${{ always() }}
# run: moodle-plugin-ci phpunit --fail-on-warning

- name: Behat features
if: ${{ always() }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ Feature: Configuring the pulseaction_notification plugin on the "Automation temp
And I switch to a second window
Then ".reportbuilder-report" "css_element" should exist
And the following should exist in the "reportbuilder-table" table:
| Full name | Subject | Status | Time created |
| student User 1 | Welcome to learning portal Acceptance test site | Queued | ##today##%A, %d %B %Y, %I:%M %p## |
| Full name | Subject | Status | Time created | Scheduled time |
| student User 1 | Welcome to learning portal Acceptance test site | Queued | ##now##%A, %d %B %Y, %I:%M %p## | ##+10 minutes##%A, %d %B %Y, %I:%M %p## |
100 changes: 0 additions & 100 deletions tests/behat/pulse_activity_completion.feature

This file was deleted.

67 changes: 0 additions & 67 deletions tests/behat/pulse_appearance.feature

This file was deleted.

Loading

0 comments on commit fa42dd7

Please sign in to comment.