github.com/henvic/wedeploycli@v1.7.6-0.20200319005353-3630f582f284/functional/tests/login.exp (about) 1 #!/usr/bin/expect 2 3 logout $::_tester(email) 4 5 Feature: "Login" 6 7 Scenario: "Login without browser" { 8 spawn $::bin login --no-browser 9 expect { 10 timeout { handle_timeout; break } 11 "Your email:" 12 } 13 send "$::_tester(email)\r" 14 expect { 15 timeout { handle_timeout; break } 16 "Now, your password:" 17 } 18 send "$::_tester(password)\r" 19 expect { 20 timeout { handle_timeout; break } 21 "Type a command and press Enter to execute it." 22 } 23 } 24 25 # TODO(henvic): write test case logging in with token