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:
Denys Vuika
2023-11-28 16:00:00 +00:00
committed by GitHub
parent 53931b0d27
commit 8aaca5f693
29 changed files with 9 additions and 1016 deletions

View File

@@ -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();
}
}