1 package com
.owncloud
.android
.test
.ui
.testSuites
;
3 import static org
.junit
.Assert
.*;
4 import io
.appium
.java_client
.android
.AndroidDriver
;
6 import org
.junit
.After
;
7 import org
.junit
.Before
;
9 import org
.junit
.experimental
.categories
.Category
;
10 import org
.junit
.rules
.TestName
;
11 import org
.junit
.runners
.MethodSorters
;
12 import org
.junit
.FixMethodOrder
;
13 import org
.junit
.Test
;
15 import com
.owncloud
.android
.test
.ui
.actions
.Actions
;
16 import com
.owncloud
.android
.test
.ui
.groups
.UnfinishedTestCategory
;
17 import com
.owncloud
.android
.test
.ui
.models
.FileListView
;
20 @FixMethodOrder(MethodSorters
.NAME_ASCENDING
)
21 public class RefreshFolderTestSuite
{
25 @Rule public TestName name
= new TestName();
28 public void setUp() throws Exception
{
30 driver
=common
.setUpCommonDriver();
35 @Category({UnfinishedTestCategory
.class})
36 public void testPulldownToRefreshFolder () throws Exception
{
37 FileListView fileListView
= Actions
.login(Config
.URL
, Config
.user
,Config
.password
, Config
.isTrusted
, driver
);
38 common
.assertIsInFileListView();
39 //TODO. Remove the sleep and check why is not working the assert when using waitTillElementIsNotPresent
41 //waitTillElementIsNotPresent(fileListView.getProgressCircular(), 1000);
42 fileListView
.pulldownToRefresh();
43 assertTrue(fileListView
.getProgressCircular().isDisplayed());
44 //TODO insert a file in the web, and check that it's shown here
49 public void tearDown() throws Exception
{
50 common
.takeScreenShotOnFailed(name
.getMethodName());
51 driver
.removeApp("com.owncloud.android");