(name: string, password: string, isAdmin: boolean)
| 38 | describe('create users', () => { |
| 39 | const createUser = |
| 40 | (name: string, password: string, isAdmin: boolean): (() => Promise<void>) => |
| 41 | async () => { |
| 42 | await page.click('#create-user'); |
| 43 | await page.waitForSelector($dialog.selector()); |
| 44 | await page.type($dialog.input('.name'), name); |
| 45 | await page.type($dialog.input('.password'), password); |
| 46 | if (isAdmin) { |
| 47 | await page.click($dialog.input('.admin-rights')); |
| 48 | } |
| 49 | await page.click($dialog.button('.save-create')); |
| 50 | await waitToDisappear(page, $dialog.selector()); |
| 51 | }; |
| 52 | it('nicories', createUser('nicories', '123', false)); |
| 53 | it('jmattheis', createUser('jmattheis', 'noice', true)); |
| 54 | it('dude', createUser('dude', '1', false)); |
no test coverage detected
searching dependent graphs…