<commit_before>package org.apache.tapestry5.integration.app1

import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test

class TapestryJavaScriptTests extends TapestryCoreTestCase {

    @Test
    void basic_javascript_tests() {
        openLinks "JavaScript Unit Tests"

        def caption = getText("//div[@class='js-results']/p[@class='caption']")

        def matches = caption =~ /(\d+) failed/

        if (matches[0][1] != "0"){
            fail "Some JavaScript unit tests failed"
        }
    }
}<commit_msg>TAP5-999: Fix error in JavaScript unit tests<commit_after>package org.apache.tapestry5.integration.app1

import org.apache.tapestry5.integration.TapestryCoreTestCase
import org.testng.annotations.Test

class TapestryJavaScriptTests extends TapestryCoreTestCase {

    @Test
    void basic_javascript_tests() {
        openLinks "JavaScript Unit Tests"

        def caption = getText("//div[@class='js-results']/p[contains(@class,'caption')]")

        def matches = caption =~ /(\d+) failed/

        if (matches[0][1] != "0"){
            fail "Some JavaScript unit tests failed"
        }
    }
}
{'fraction_non_alphanumeric': 0.11948051948051948, 'fraction_numerical': 0.013852813852813853, 'mean_word_length': 3.3134328358208953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7665655', 'n_tokens_mistral': 361, 'n_tokens_neox': 325, 'n_words': 74}