Skip to content

Commit 2c3b6f1

Browse files
committed
added go_forward event in spec
1 parent 6b352e9 commit 2c3b6f1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

spec/usage/components/transition_spec.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ def page2
148148
expect(page).not_to have_content("This is Page 2")
149149
expect(page).to have_selector("body.not-reloaded")
150150
expect(page).to have_no_content(first_content_on_page_1)
151+
152+
page.go_forward
153+
154+
expect(page).to have_content("My Example App Layout")
155+
expect(page).not_to have_content("This is Page 1")
156+
expect(page).to have_content("This is Page 2")
157+
expect(page).to have_selector("body.not-reloaded")
151158
end
152159

153160
# supposed to work, but doesn't. Suspect Vue is the culprint here

0 commit comments

Comments
 (0)