def METHOD_NAME(screen: Screen):
    @ui.page('/subpage')
    def page():
        ui.label('the subpage')
    ui.link('link to subpage', page)
    screen.open('/')
    screen.click('link to subpage')
    screen.should_contain('the subpage')