Skip to content

Commit

Permalink
fu test
Browse files Browse the repository at this point in the history
  • Loading branch information
MHajoha committed Mar 14, 2024
1 parent c6b7ce4 commit dfa1645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/form/elements/element_html_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ class element_html_test extends \advanced_testcase {
*/
public function test_rendered_html_should_match_snapshot(string $elementkind, qpy_renderable $element): void {
global $CFG;
if (in_array($elementkind, ["checkbox", "checkbox_group", "select", "input"]) && $CFG->branch <= "401") {
$this->markTestSkipped("Moodle 4.2 adds the aria-required attribute to required elements.");
if ($CFG->branch != "403") {
$this->markTestSkipped("Mform HTML output changes between Moodle versions so we only run them on 4.3");
}

$snapshotfilepath = __DIR__ . "/html/" . $elementkind . ".html";
Expand Down

0 comments on commit dfa1645

Please sign in to comment.