content: package com.alphawallet.app;
  
  import static androidx.test.espresso.Espresso.onView;
  import static androidx.test.espresso.Espresso.pressBack;
  import static androidx.test.espresso.action.ViewActions.swipeDown;
  import static androidx.test.espresso.matcher.ViewMatchers.withId;
  import static androidx.test.espresso.matcher.ViewMatchers.withParent;
  import static androidx.test.espresso.matcher.ViewMatchers.withSubstring;
  import static androidx.test.espresso.matcher.ViewMatchers.withText;
  import static com.alphawallet.app.assertions.Should.shouldSee;
  import static com.alphawallet.app.steps.Steps.createNewWallet;
  import static com.alphawallet.app.util.Helper.click;
  import static com.alphawallet.app.util.Helper.clickMadly;
  import static org.hamcrest.CoreMatchers.allOf;
  
  import com.alphawallet.app.util.Helper;
  
  import org.junit.Test;
  
  public class SwapTest extends BaseE2ETest
  {
      @Test
      public void should_see_swap_window()
      {
          createNewWallet();
          Helper.wait(1);
          clickMadly(withText("0 ETH"));
          click(withId(R.id.more_button));
          click(withText("Swap"));
          shouldSee("Select Exchanges");
          click(withText("DODO"));
          pressBack();
          Helper.wait(21);
          click(allOf(withId(R.id.chain_name), withParent(withId(R.id.layout_chain_name))));
          click(withText("1%"));
          shouldSee("DODO");
          click(withText("Edit"));
          click(withText("1inch"));
          pressBack();
          shouldSee("1inch");
          pressBack();
          click(withId(R.id.action_settings));
          shouldSee("Settings");
      }
  }
  