1818 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1919 */
2020
21- import { isEnterpriseEdition } from '../support/utils'
21+ import { isAura , isEnterpriseEdition } from '../support/utils'
2222
2323/* global Cypress, cy, before */
2424
@@ -29,36 +29,39 @@ describe('User: ', () => {
2929 const password = Cypress . config ( 'password' )
3030 cy . connect ( 'neo4j' , password )
3131 } )
32- it ( "Doesn't throw when listing users" , ( ) => {
33- cy . executeCommand ( ':clear' )
34- cy . executeCommand ( ':server user list' )
35- cy . get ( '[data-testid="frame"]' , { timeout : 10000 } ) . should (
36- 'contain' ,
37- isEnterpriseEdition ( ) ? 'Username' : 'Unable to display'
38- )
39- } )
40- // Only on enterprise
41- if ( isEnterpriseEdition ( ) ) {
42- it ( 'Add User' , ( ) => {
43- cy . executeCommand ( ':clear' )
44- cy . executeCommand ( ':server user add' )
45- cy . addUser ( 'Bob' , 'hi' , 'editor' , false )
32+ if ( ! isAura ( ) ) {
33+ // usermanagement in frames disabled on aura
34+ it ( "Doesn't throw when listing users" , ( ) => {
4635 cy . executeCommand ( ':clear' )
4736 cy . executeCommand ( ':server user list' )
48- cy . get ( '.user-info > .username' ) . should ( 'have.length' , 2 )
49- cy . get ( '.user-info > .username' ) . contains ( 'Bob' )
37+ cy . get ( '[data-testid="frame"]' , { timeout : 10000 } ) . should (
38+ 'contain' ,
39+ isEnterpriseEdition ( ) ? 'Username' : 'Unable to display'
40+ )
5041 } )
42+ // Only on enterprise
43+ if ( isEnterpriseEdition ( ) ) {
44+ it ( 'Add User' , ( ) => {
45+ cy . executeCommand ( ':clear' )
46+ cy . executeCommand ( ':server user add' )
47+ cy . addUser ( 'Bob' , 'hi' , 'editor' , false )
48+ cy . executeCommand ( ':clear' )
49+ cy . executeCommand ( ':server user list' )
50+ cy . get ( '.user-info > .username' ) . should ( 'have.length' , 2 )
51+ cy . get ( '.user-info > .username' ) . contains ( 'Bob' )
52+ } )
5153
52- it ( 'Add User with forced pw change' , ( ) => {
53- cy . executeCommand ( ':clear' )
54- cy . executeCommand ( ':server user add' )
55- cy . addUser ( 'Rob' , 'hi' , 'editor' , true )
56- cy . executeCommand ( ':clear' )
57- cy . executeCommand ( ':server user list' )
58- cy . get ( '.user-info > .username' ) . should ( 'have.length' , 3 )
59- cy . get ( '.user-info > .username' ) . contains ( 'Rob' )
60- cy . dropUser ( 'Bob' )
61- cy . dropUser ( 'Rob' )
62- } )
54+ it ( 'Add User with forced pw change' , ( ) => {
55+ cy . executeCommand ( ':clear' )
56+ cy . executeCommand ( ':server user add' )
57+ cy . addUser ( 'Rob' , 'hi' , 'editor' , true )
58+ cy . executeCommand ( ':clear' )
59+ cy . executeCommand ( ':server user list' )
60+ cy . get ( '.user-info > .username' ) . should ( 'have.length' , 3 )
61+ cy . get ( '.user-info > .username' ) . contains ( 'Rob' )
62+ cy . dropUser ( 'Bob' )
63+ cy . dropUser ( 'Rob' )
64+ } )
65+ }
6366 }
6467} )
0 commit comments