Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import {Md2MultiSelect} from "./components/md2/md2-multi-select";
  2.  
  3. describe('example test usage of md2-select multiple test class', () => {
  4.  
  5. it("md2-select: should be able to check all options", () => {
  6. const md2Select = new Md2MultiSelect('[name=anotherSelect]');
  7. md2Select.checkAll();
  8. md2Select.open();
  9. expect(element.all(by.css('.md2-select-content .md2-option')).count()).toEqual(element.all(by.css('.md2-selected')).count());
  10. });
  11.  
  12. it("md2-select: should be able to select multiple items from the options", () => {
  13. const list = ['A', 'B', 'C', '1', '2', '3'];
  14. const md2select = new Md2MultiSelect('[name=selectedCaseStatuses]');
  15. md2select.uncheckAll().click(list);
  16. expect(md2select.getStringValue()).toContain('A, B, C, 1, 2, 3');
  17. });
  18.  
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement