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

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

class CanceledEventTests extends TapestryCoreTestCase
{
    @Test
    void cancel_button()
    {
        openLinks "Canceled Event Demo"

        clickAndWait SUBMIT

        assertText "css=.t-alert-container", "Form was canceled."
    }

    @Test
    void cancel_link()
    {
        openLinks "Canceled Event Demo"

        clickAndWait "link=Cancel Form"

        assertText "css=.t-alert-container", "Form was canceled."
    }
}<commit_msg>Fix broken tests<commit_after>package org.apache.tapestry5.integration.app1

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

class CanceledEventTests extends TapestryCoreTestCase
{
    @Test
    void cancel_button()
    {
        openLinks "Canceled Event Demo"

        sleep 100

        clickAndWait SUBMIT

        assertFirstAlert "Form was canceled."
    }

    @Test
    void cancel_link()
    {
        openLinks "Canceled Event Demo"

        sleep 100

        clickAndWait "link=Cancel Form"

        assertFirstAlert "Form was canceled."
    }
}
{'fraction_non_alphanumeric': 0.07597027250206441, 'fraction_numerical': 0.00990916597853014, 'mean_word_length': 2.823343848580442, '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': '4632317', 'n_tokens_mistral': 381, 'n_tokens_neox': 351, 'n_words': 82}