File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,6 @@ describe('Create Admin Page', () => {
34
34
} ) ;
35
35
36
36
it ( 'Login button should submit username and password to addUser' , ( ) => {
37
- const element = screen . getByTestId ( 'Login' ) ;
38
- const inputs = element . querySelectorAll ( 'input' ) ;
39
-
40
37
const usernameInput = screen . getByPlaceholderText ( 'username' ) ;
41
38
const passwordInput = screen . getByPlaceholderText ( 'password' ) ;
42
39
const loginButton = screen . getByRole ( 'button' , { name : / L o g i n / i } ) ;
@@ -45,8 +42,6 @@ describe('Create Admin Page', () => {
45
42
fireEvent . change ( passwordInput , { target : { value : 'me123' } } ) ;
46
43
47
44
fireEvent . click ( loginButton ) ;
48
- // expect(ipcRenderer.sendSync).toHaveBeenCalled;
49
- // above passes test but below fails and says number of calls is zero
50
45
expect ( ipcRenderer . sendSync ) . toHaveBeenCalledWith ( 'login' , {
51
46
username : 'St1nky' ,
52
47
password : 'me123' ,
You can’t perform that action at this time.
0 commit comments