Skip to content

Commit

Permalink
Cucumber: remove see layout test
Browse files Browse the repository at this point in the history
  • Loading branch information
javierjulio committed Jul 13, 2023
1 parent 93e21aa commit f72800b
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 24 deletions.
3 changes: 1 addition & 2 deletions features/dashboard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ Feature: Dashboard
"""
And I am logged in
When I go to the dashboard
Then I should see the Active Admin layout
And I should not see the default welcome message
Then I should not see the default welcome message
And I should see "Hello world from the dashboard page"
8 changes: 0 additions & 8 deletions features/registering_pages.feature
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Feature: Registering Pages
When I go to the dashboard
And I follow "Status"
Then I should see the page title "Status"
And I should see the Active Admin layout
And I should see the content "I love chocolate."

Scenario: Registering a page with a complex name
Expand All @@ -32,7 +31,6 @@ Feature: Registering Pages
When I go to the dashboard
And I follow "Chocolate I lØve You!"
Then I should see the page title "Chocolate I lØve You!"
And I should see the Active Admin layout
And I should see the content "I love chocolate."

Scenario: Registering an empty page
Expand All @@ -43,7 +41,6 @@ Feature: Registering Pages
When I go to the dashboard
And I follow "Status"
Then I should see the page title "Status"
And I should see the Active Admin layout

Scenario: Registering a page with a custom title as a string
Given a configuration of:
Expand Down Expand Up @@ -130,10 +127,8 @@ Feature: Registering Pages
And I follow "Status"
And I follow "Post Check"
Then I should see "Checked via POST"
And I should see the Active Admin layout
When I follow "Get Check"
Then I should see "Checked via GET"
And I should see the Active Admin layout

Scenario: Adding a page action to a page
Given a configuration of:
Expand All @@ -152,7 +147,6 @@ Feature: Registering Pages
And I follow "Status"
And I follow "Check"
Then I should see the content "Chocolate I lØve You!"
And I should see the Active Admin layout

@changes-filesystem
Scenario: Adding a page action to a page with erb view
Expand All @@ -175,7 +169,6 @@ Feature: Registering Pages
And I follow "Status"
And I follow "Check"
Then I should see the content "Chocolate lØves You Too!"
And I should see the Active Admin layout

Scenario: Registering a page with paginated index table for a collection Array
Given a user named "John Doe" exists
Expand All @@ -197,7 +190,6 @@ Feature: Registering Pages
When I go to the dashboard
And I follow "Special users"
Then I should see the page title "Special users"
And I should see the Active Admin layout
And I should see 1 user in the table

Scenario: Displaying parent information from a belongs_to page
Expand Down
2 changes: 0 additions & 2 deletions features/specifying_actions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ Feature: Specifying Actions
And I follow "Review"
Then I should see "Review: Hello World"
And I should see the page title "Review"
And I should see the Active Admin layout

@changes-filesystem
Scenario: Specify a custom member action with template using arb
Expand All @@ -92,7 +91,6 @@ Feature: Specifying Actions
And I follow "Review"
Then I should see "Review: Hello World"
And I should see the page title "Review"
And I should see the Active Admin layout

Scenario: Specify a custom member action with multiple http methods
Given a configuration of:
Expand Down
4 changes: 0 additions & 4 deletions features/step_definitions/layout_steps.rb

This file was deleted.

8 changes: 0 additions & 8 deletions spec/unit/views/pages/layout_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,5 @@
expect(layout.attributes[:lang]).to eq :en
end

describe "the body" do
it "should have class 'active_admin'" do
expect(layout.build.class_list).to include "active_admin"
end

it "should have namespace class" do
expect(layout.build.class_list).to include "#{active_admin_namespace.name}_namespace"
end
end
end

0 comments on commit f72800b

Please sign in to comment.