Simplify translatable tests in admin section

These feature tests were taking too long, we can't run them for every
single model.

I'm taking the approach of using one different model for each test, but
in theory only using a few models covering every possible scenario
would be enough.
This commit is contained in:
Javi Martín
2019-09-20 00:05:19 +02:00
parent ef7606bb45
commit 44d137a4c0
22 changed files with 416 additions and 490 deletions

View File

@@ -7,11 +7,6 @@ describe "Cards" do
login_as(admin)
end
it_behaves_like "edit_translatable",
"widget_card",
"edit_admin_widget_card_path",
%w[title description link_text label]
scenario "Create", :js do
visit admin_homepage_path
click_link "Create card"