Spec refactoring

KASM-1609_select_de_to_run
Dmitry Maksyoma 4 years ago
parent fe2bd6c6d6
commit 8152596519

@ -57,6 +57,7 @@ with description('vncserver') as self:
with after.each:
kill_xvnc()
with context('on the first run'):
with it('asks user to select a DE on the first run'):
add_kasmvnc_user_docker()
@ -66,15 +67,6 @@ with description('vncserver') as self:
check_de_was_setup_to_run('cinnamon')
with it('selects passed DE with -s'):
add_kasmvnc_user_docker()
cmd = f'{vncserver_cmd} -select-de mate'
completed_process = run_cmd(cmd)
expect(completed_process.returncode).to(equal(0))
check_de_was_setup_to_run('mate')
with it('asks to select a DE, when ran with -select-de'):
add_kasmvnc_user_docker()
@ -84,3 +76,12 @@ with description('vncserver') as self:
expect(completed_process.returncode).to(equal(0))
check_de_was_setup_to_run('cinnamon')
with it('selects passed DE with -s'):
add_kasmvnc_user_docker()
cmd = f'{vncserver_cmd} -select-de mate'
completed_process = run_cmd(cmd)
expect(completed_process.returncode).to(equal(0))
check_de_was_setup_to_run('mate')

Loading…
Cancel
Save