[
https://issues.apache.org/jira/browse/WICKET-3913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13066878#comment-13066878
]
Martin Grigorov commented on WICKET-3913:
-----------------------------------------
Which version of Wicket ?
Please attach a quickstart application with the test case. It makes it easier
for us to setup and debug it.
> WicketTester doesn't changes from panel to page
> -----------------------------------------------
>
> Key: WICKET-3913
> URL: https://issues.apache.org/jira/browse/WICKET-3913
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC5.1
> Environment: Maven, Eclipse Helios
> Reporter: Ruslan Shyposha
>
> I have a small panel with a form. The form sends a response to another page
> (not panel), when submitted.
> I want to test the panel using WicketTester.startPanel():
> @Test
> public void testCreateStandardMessage() {
> tester.startPanel(NavigationHeaderPanel.class);
> tester.clickLink("navigationHeader:createNewStandardMessage");
> tester.assertRenderedPage(ComposeMailPage.class);
> tester.assertLabel("createForm:stampLabel", "Standard");
> }
> I got an error on the last line:
> junit.framework.AssertionFailedError: path:
> 'testObject:createForm:stampLabel' does not exist for page: ComposeMailPage
> As you see, WicketTester still prefixes the path with "testObject:", which
> shouldn't be for the response page. The path to the label
> ("createForm:stampLabel") itself is right for the page.
> The same was working in Wicket 1.4.x
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira