mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
Remove dead code from the e2e (#3542)
* cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code * cleanup dead code
This commit is contained in:
@@ -22,11 +22,9 @@
|
||||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { by } from 'protractor';
|
||||
import { BrowsingPage } from './browsing-page';
|
||||
import { SearchSortingPicker } from '../components/search/search-sorting-picker';
|
||||
import { SearchFilters } from '../components/search/search-filters';
|
||||
import { BrowserActions } from '@alfresco/adf-testing';
|
||||
|
||||
export class SearchResultsPage extends BrowsingPage {
|
||||
root = this.byCss('aca-search-results');
|
||||
@@ -36,28 +34,4 @@ export class SearchResultsPage extends BrowsingPage {
|
||||
async waitForResults(): Promise<void> {
|
||||
await this.dataTable.waitForBody();
|
||||
}
|
||||
|
||||
async getName(name: string): Promise<string> {
|
||||
return this.dataTable.getRowByName(name).element(by.css('[title="Name"] div.search-file-name')).getText();
|
||||
}
|
||||
|
||||
async getDescription(name: string): Promise<string> {
|
||||
return this.dataTable.getRowByName(name).element(by.css('[title="Description"]')).getText();
|
||||
}
|
||||
|
||||
async getModified(name: string): Promise<string> {
|
||||
return BrowserActions.getAttribute(this.dataTable.getRowByName(name).element(by.css('[title="Modified"] span')), 'title');
|
||||
}
|
||||
|
||||
async getSize(name: string): Promise<string> {
|
||||
return this.dataTable.getRowByName(name).element(by.css('[title="Size"]')).getText();
|
||||
}
|
||||
|
||||
async getModifiedBy(name: string): Promise<string> {
|
||||
return this.dataTable.getRowByName(name).element(by.css('[title="Modified by"]')).getText();
|
||||
}
|
||||
|
||||
async getLocation(name: string): Promise<string> {
|
||||
return this.dataTable.getRowByName(name).element(by.css('[title="Name"] a')).getText();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user