File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
tests/System/integration/cli Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ describe ( 'Test that console command user' , ( ) => {
2+ it ( 'can list users' , ( ) => {
3+ cy . exec ( `php ${ Cypress . env ( 'cmsPath' ) } /cli/joomla.php user:list` )
4+ . its ( 'stdout' )
5+ . should ( 'contain' , `${ Cypress . env ( 'username' ) } ` ) ;
6+ } ) ;
7+ it ( 'can add a user' , ( ) => {
8+ const para = '--username=test --name=test --password=123456789012 [email protected] --usergroup=Manager -n' ; 9+ cy . exec ( `php ${ Cypress . env ( 'cmsPath' ) } /cli/joomla.php user:add ${ para } ` )
10+ . its ( 'stdout' )
11+ . should ( 'contain' , 'User created!' ) ;
12+ } ) ;
13+ it ( 'can delete a user' , ( ) => {
14+ const para = '--username=test -n' ;
15+ cy . exec ( `php ${ Cypress . env ( 'cmsPath' ) } /cli/joomla.php user:delete ${ para } ` )
16+ . its ( 'stdout' )
17+ . should ( 'contain' , 'User test deleted!' ) ;
18+ } ) ;
19+ } ) ;
You can’t perform that action at this time.
0 commit comments