testOnOffOpenVpn(testDashboard.java:47) fails
After fixing some obvious bugs in this same class, I'm not able to fix this one as easily.
junit.framework.AssertionFailedError at se.leap.bitmaskclient.test.testDashboard.testOnOffOpenVpn(testDashboard.java:47) at java.lang.reflect.Method.invokeNative(Native Method) at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:214) at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:199) at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:192) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:191) at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:176) at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:554) at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1701) ..
public void testOnOffOpenVpn() {
solo.clickOnView(solo.getView(R.id.eipSwitch));
if(!solo.waitForText(getActivity().getString(R.string.eip_status_start_pending)))
fail();
if(!solo.waitForText(getActivity().getString(R.string.state_auth)))
fail();
if(!solo.waitForText(getActivity().getString(R.string.state_connected))) => It doesn't find this string, although I can see it visually there before failing.
fail();
solo.clickOnView(solo.getView(R.id.eipSwitch));
if(!solo.waitForText(getActivity().getString(R.string.eip_state_not_connected)))
fail();
(from redmine: created on 2014-03-20, closed on 2014-03-20)