root / test / org / gss_project / gss / web / client / selenium / tests / TestFileProperties.java @ 1206:292dec4eae08
History | View | Annotate | Download (2 kB)
1 |
/*
|
---|---|
2 |
* Copyright 2011 Electronic Business Systems Ltd.
|
3 |
*
|
4 |
* This file is part of GSS.
|
5 |
*
|
6 |
* GSS is free software: you can redistribute it and/or modify
|
7 |
* it under the terms of the GNU General Public License as published by
|
8 |
* the Free Software Foundation, either version 3 of the License, or
|
9 |
* (at your option) any later version.
|
10 |
*
|
11 |
* GSS is distributed in the hope that it will be useful,
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
14 |
* GNU General Public License for more details.
|
15 |
*
|
16 |
* You should have received a copy of the GNU General Public License
|
17 |
* along with GSS. If not, see <http://www.gnu.org/licenses/>.
|
18 |
*/
|
19 |
package org.gss_project.gss.web.client.selenium.tests; |
20 |
|
21 |
import org.openqa.selenium.By; |
22 |
|
23 |
public class TestFileProperties extends TestFileBasics{ |
24 |
|
25 |
public void renameFile() throws InterruptedException{ |
26 |
action.click(By.id("filePropertiesDialog.textBox.name"));
|
27 |
Thread.sleep(1000); |
28 |
action.type(By.id("filePropertiesDialog.textBox.name"), fileToDownload);
|
29 |
Thread.sleep(2000); |
30 |
action.click(By.id("filePropertiesDialog.button.ok"));
|
31 |
|
32 |
} |
33 |
|
34 |
|
35 |
// @Test
|
36 |
public void testRenameFile() throws InterruptedException{ |
37 |
|
38 |
selectFolderBelowHome(userName, folderName); |
39 |
Thread.sleep(1000); |
40 |
selectFile(fileName); |
41 |
Thread.sleep(1000); |
42 |
selectTopMenu("file");
|
43 |
Thread.sleep(1000); |
44 |
selectAnOptionInTopMenu("file", "properties"); |
45 |
Thread.sleep(1000); |
46 |
renameFile(); |
47 |
|
48 |
//TODO:assert new name
|
49 |
} |
50 |
|
51 |
/** TODO:. Add a Tag to a file
|
52 |
* > select a file
|
53 |
* > select File > 'Properties'
|
54 |
* > type a word that represents a tag to the tag input box
|
55 |
* > click 'Ok'
|
56 |
*/
|
57 |
|
58 |
/** TODO:. Add a Version to a file
|
59 |
* > select a file
|
60 |
* > select File > 'Properties'
|
61 |
* > select the 'Versions' tab
|
62 |
* > click on the Versioned check box
|
63 |
* > click 'Ok'
|
64 |
*/
|
65 |
|
66 |
/** TODO:
|
67 |
* . Add a new version in an already versioned file
|
68 |
*/
|
69 |
|
70 |
/** TODO:. Remove a Version from a file
|
71 |
*
|
72 |
*/
|
73 |
|
74 |
} |