forked from shibao/cannery
		
	fix some gettexts
This commit is contained in:
		@@ -212,7 +212,7 @@ defmodule CanneryWeb.AmmoGroupLiveTest do
 | 
			
		||||
    test "hides empty ammo groups by default", %{conn: conn, empty_ammo_group: ammo_group} do
 | 
			
		||||
      {:ok, show_live, html} = live(conn, Routes.ammo_group_index_path(conn, :index))
 | 
			
		||||
 | 
			
		||||
      assert html =~ gettext("Show used")
 | 
			
		||||
      assert html =~ dgettext("actions", "Show used")
 | 
			
		||||
      refute html =~ gettext("$%{amount}", amount: 50.00 |> :erlang.float_to_binary(decimals: 2))
 | 
			
		||||
 | 
			
		||||
      refute html =~
 | 
			
		||||
 
 | 
			
		||||
@@ -183,7 +183,7 @@ defmodule CanneryWeb.AmmoTypeLiveTest do
 | 
			
		||||
         %{conn: conn, ammo_type: ammo_type} do
 | 
			
		||||
      {:ok, show_live, html} = live(conn, Routes.ammo_type_show_path(conn, :show, ammo_type))
 | 
			
		||||
 | 
			
		||||
      assert html =~ gettext("Show used")
 | 
			
		||||
      assert html =~ dgettext("actions", "Show used")
 | 
			
		||||
      refute html =~ "some ammo group"
 | 
			
		||||
 | 
			
		||||
      html = show_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
 | 
			
		||||
 
 | 
			
		||||
@@ -167,7 +167,7 @@ defmodule CanneryWeb.ContainerLiveTest do
 | 
			
		||||
         %{conn: conn, container: container} do
 | 
			
		||||
      {:ok, show_live, html} = live(conn, Routes.container_show_path(conn, :show, container))
 | 
			
		||||
 | 
			
		||||
      assert html =~ gettext("Show used")
 | 
			
		||||
      assert html =~ dgettext("actions", "Show used")
 | 
			
		||||
      refute html =~ "some ammo group"
 | 
			
		||||
 | 
			
		||||
      html = show_live |> element("[data-qa=\"toggle_show_used\"]") |> render_click()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user