-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit implements end-to-end tests for record deletions. It also reworks the 'actions' menus on the cash and invoice registries to use a similar layout, and builds the 'GridRow' shared class to harness those menus. This makes selection of each grid row explicit - the record human readable reference is passed in to select it. Closes #2044.
- Loading branch information
Showing
17 changed files
with
935 additions
and
266 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,31 +1,27 @@ | ||
/* global element */ | ||
/* global element, by */ | ||
|
||
/** | ||
* This class represents a modal search page | ||
* behaviour so it is a modal search page object | ||
**/ | ||
|
||
*/ | ||
const FU = require('../shared/FormUtils'); | ||
const components = require('../shared/components'); | ||
const grid = require('../shared/GridUtils'); | ||
|
||
class SearchModalPage{ | ||
|
||
setDisplayName(displayName){ | ||
FU.input('ModalCtrl.searchQueries.display_name', displayName); | ||
} | ||
class SearchModalPage { | ||
setDisplayName(displayName) { | ||
FU.input('ModalCtrl.searchQueries.display_name', displayName); | ||
} | ||
|
||
submit (){ | ||
FU.modal.submit(); | ||
} | ||
submit() { | ||
FU.modal.submit(); | ||
} | ||
|
||
selectSex (sex){ | ||
return element(by.id(`${sex}`)).click(); | ||
} | ||
selectSex(sex) { | ||
return element(by.id(`${sex}`)).click(); | ||
} | ||
|
||
setDateRange (range){ | ||
return $(`[data-date-range="${range}"]`).click(); | ||
} | ||
setDateRange(range) { | ||
return $(`[data-date-range="${range}"]`).click(); | ||
} | ||
} | ||
|
||
module.exports = SearchModalPage; | ||
module.exports = SearchModalPage; |
Oops, something went wrong.