You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/07/15 20:11:50 UTC
[GitHub] [trafficcontrol] ocket8888 commented on a change in pull request #6012: TP Migrate Jobs test from E2E to integrate test
ocket8888 commented on a change in pull request #6012:
URL: https://github.com/apache/trafficcontrol/pull/6012#discussion_r670771612
##########
File path: traffic_portal/test/integration/PageObjects/SideNavigationPage.po.ts
##########
@@ -54,6 +54,10 @@ export class SideNavigationPage extends BasePage{
private lnkCoordinates = element(by.xpath("//a[@href='/#!/coordinates']"));
private lnkRegions = element(by.xpath("//a[@href='/#!/regions']"));
private lnkASNs = element(by.xpath("//a[@href='/#!/asns']"));
+ //Navigation for Jobs
+ private propTools = "//div[@id='sidebar-menu']//a[contains(text(),'Tools')]"
Review comment:
CSS selectors are easier to read and understand than XPath, the equivalent of this would be `element.byCSSContainingText("#sidebar-menu a", "Tools"`)`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org