# NavigatorTest

NavigatorTest
open | /run/com.vaadin.tests.navigator.NavigatorTest?restartApplication |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 1. Navigated to DefaultView without params
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VLabel[0] | Default view:
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/VOrderedLayout$Slot[0]/VButton[0]/domChild[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 2. Navigated to ListView without params
assertElementPresent | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VScrollTable[0] |
assertLocation | *#!list |
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VButton[0]/domChild[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 3. Navigated to EditView without params
assertElementPresent | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VRichTextArea[0] |
assertLocation | *#!edit |
mouseClick | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[4]/VTextField[0] | 56,6
enterCharacter | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[4]/VTextField[0] | param=value
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/VOrderedLayout$Slot[0]/VButton[0]/domChild[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 4. Navigated to ListView with params param=value
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[0]/domChild[0] | param
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VScrollTable[0]/domChild[1]/domChild[0]/domChild[1]/domChild[0]/domChild[0]/domChild[1]/domChild[0] | value
assertLocation | *#!list/param=value |
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/VOrderedLayout$Slot[1]/VButton[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 5. Navigated to EditView with params param=value
assertLocation | *#!edit/param=value |
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/VOrderedLayout$Slot[2]/VButton[0]/domChild[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 6. Prevent navigation to ForbiddenView
assertLocation | *#!edit/param=value |
click | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[3]/VButton[0]/domChild[0]/domChild[0] |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 7. Navigated to SpecialCharsView: öääö !%&/()=; fragment: !öääö !%&/()=/param=value
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VLabel[0] | öääö !%&/()=
assertLocation | *#!%C3%B6%C3%A4%C3%A4%C3%B6%20!%25&/()=/param=value |
runScript | window.location.hash='!foo bar' |
pause | 3000 |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 8. View 'foo bar' not found!
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VLabel[0] | Tried to navigate to foo bar but such a view could not be found :(
assertLocation | regex:.*#!foo( |%20)bar |
runScript | window.location.hash='!/foo=bar' |
pause | 3000 |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 9. Navigated to DefaultView with params foo=bar
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::/VVerticalLayout[0]/Slot[6]/VVerticalLayout[0]/Slot[0]/VLabel[0] | Default view: foo=bar
assertLocation | *#!/foo=bar |
runScript | window.location.hash='foo bar' |
pause | 3000 |
assertText | vaadin=runcomvaadintestsnavigatorNavigatorTest::PID_SLog_row_0 | 10. Navigated to DefaultView without params
assertLocation | regex:.*#foo( |%20)bar |