We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60002e commit 91588feCopy full SHA for 91588fe
spec/system/inertia_examples_spec.rb
@@ -0,0 +1,16 @@
1
+# frozen_string_literal: true
2
+
3
+require "rails_helper"
4
5
+RSpec.describe "InertiaExample", type: :system do
6
+ it "renders the text and increments the counter" do
7
+ visit inertia_example_path(name: "TestUser")
8
9
+ expect(page).to have_content("Hello TestUser!")
10
+ expect(page).to have_content("count is 0")
11
12
+ find("button", text: "count is 0").click
13
14
+ expect(page).to have_content("count is 1")
15
+ end
16
+end
0 commit comments