-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from DEFRA/sprint6-locationMonitoringStationLis…
…tPage-AQD-357 sprint6-locationMonitoringStationListPage-AQD-357
- Loading branch information
Showing
5 changed files
with
562 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { $ } from '@wdio/globals' | ||
|
||
class LocationMonitoringStationListPage { | ||
get getMonitoringStationListPageHeading() { | ||
return $("h1[class*='govuk-heading-xl govuk-!-margin-bottom-6']") | ||
} | ||
|
||
get getMonitoringStationListPageContent() { | ||
return $("main[class*='govuk-main-wrapper app-main-wrapper']") | ||
} | ||
|
||
get getBackLink() { | ||
return $("a[class='govuk-back-link']") | ||
} | ||
|
||
get getChangeSearchAreaLink() { | ||
return $("a[href='/search-location']") | ||
} | ||
|
||
get getMonitoringStationLink() { | ||
return (text) => $(`//a[contains(text(),'${text}')]`) | ||
} | ||
|
||
get getMonitoringStationTableHeading() { | ||
return $("th[class='govuk-table__header govuk-!-width-one-half']") | ||
} | ||
|
||
get getSiteTypeTableHeading() { | ||
return $("th[class='govuk-table__header govuk-!-width-one-quarter']") | ||
} | ||
|
||
get getPollutantsTableHeading() { | ||
return $( | ||
"th[class='govuk-table__header govuk-table__header--numeric govuk-!-width-one-quarter']" | ||
) | ||
} | ||
|
||
get getParagraph() { | ||
return $$("p[class='govuk-body']")[1] | ||
} | ||
|
||
get getListItem() { | ||
return $('li') | ||
} | ||
|
||
get getList() { | ||
return $("ul[class='govuk-list']") | ||
} | ||
|
||
get getTableHeaderPadding() { | ||
return $("tr[class='govuk-table__header']") | ||
} | ||
|
||
get getTablecell1Padding() { | ||
return $("th[class='govuk-table__cell']") | ||
} | ||
|
||
get getTablecell2Padding() { | ||
return $("td[class='govuk-table__cell govuk-table__cell--numeric']") | ||
} | ||
} | ||
|
||
// module.exports=new StartNowPage() | ||
export default new LocationMonitoringStationListPage() |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.