You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: language_tracking_integration_test.rb
    path of file: ./repos/mushroom-observer/test/integration/capybara
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require("test_helper")

class LanguageTrackingIntegrationTest < CapybaraIntegrationTestCase
  # -----------------------------------------------------------------
    
  def test_language_tracking
    lang_session = Capybara::Session.new(:rack_test, Rails.application)
    login(mary, session: lang_session)
    mary.locale = "el"
    I18n.with_locale(:el) do
      mary.save

      TranslationString.store_localizations(
        :el,
        { test_tag1: "test_tag1 value",
          test_tag2: "test_tag2 value",
          test_flash_redirection_title: "Testing Flash Redirection" }
      )

      lang_session.visit("/test_pages/flash_redirection?tags=")
      lang_session.click_link(text: :app_edit_translations_on_page.t)
      assert_no_flash(session: lang_session)
      lang_session.assert_no_selector("span.tag", text: "test_tag1:")
      lang_session.assert_no_selector("span.tag", text: "test_tag2:")
      lang_session.assert_selector("span.tag",
                                   text: "test_flash_redirection_title:")

      lang_session.visit(
        "/test_pages/flash_redirection?tags=test_tag1,test_tag2"
      )
      lang_session.click_link(text: :app_edit_translations_on_page.t)
      assert_no_flash(session: lang_session)
      lang_session.assert_selector("span.tag", text: "test_tag1:")
      lang_session.assert_selector("span.tag", text: "test_tag2:")
      lang_session.assert_selector("span.tag",
                                   text: "test_flash_redirection_title:")
    end
  end