Any thoughts on this? I remember reading somewhere that using AJAX to refresh a component generated using "repeater" may cause some problems. Is this what I am against here with WicketTester? (Keep in mind that the table does get refreshed correctly in production.)
Thanks On Mon, Sep 20, 2010 at 6:24 PM, Alec Swan <alecs...@gmail.com> wrote: > Hello, > > I have a page which contains a DropDownChoice menu and a table. The > menu has AjaxFormComponentUpdatingBehavior which causes the table to > refresh. The page is actually working correctly, but I am having > problems with a test. > > The test does the following: > 1. Renders the page > 2. Verifies that the first table row has the right data using > tester.getComponentFromLastRenderedPage("referralsForm:referrals:1") > 3, Selects an item in the menu and calls executeAjaxEvent(menuId, > "onchange") > 4. Verifies that the first row of the table contains the right data > the same way step 2 does > > The last step fails indicating that "referralsForm:referrals:1" does > not exist. However, "referralsForm:referrals" exists and its model > data contains the rows I expect it to contain. > > What am I doing wrong? > > Thanks >