Skip to content

Commit

Permalink
Move this test to using device_test
Browse files Browse the repository at this point in the history
  • Loading branch information
jagthedrummer committed Oct 18, 2024
1 parent af000f7 commit bc661f3
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions test/system/super_scaffolding/partial_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@ def setup
end

if defined?(TestFile)
test "developers can Super Scaffold a file partial and perform crud actions on the record" do
display_details = @@test_devices[:macbook_pro_15_inch]
resize_for(display_details)

device_test "developers can Super Scaffold a file partial and perform crud actions on the record" do
login_as(@jane, scope: :user)
visit account_team_path(@jane.current_team)

Expand Down Expand Up @@ -85,10 +82,7 @@ def setup
end

if defined?(ColorPicker)
test "super scaffolded color pickers function properly" do
display_details = @@test_devices[:macbook_pro_15_inch]
resize_for(display_details)

device_test "super scaffolded color pickers function properly" do
login_as(@jane, scope: :user)
visit account_team_path(@jane.current_team)

Expand All @@ -111,10 +105,7 @@ def setup
end

if defined?(PartialTest)
test "super scaffolded partials function properly" do
display_details = @@test_devices[:macbook_pro_15_inch]
resize_for(display_details)

device_test "super scaffolded partials function properly" do
login_as(@jane, scope: :user)
visit account_team_path(@jane.current_team)

Expand Down

0 comments on commit bc661f3

Please sign in to comment.