blob: 9cb9f9ba529ce023dc6ace7de9acff96349350c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
module QA
context 'Release' do
describe 'Deploy token creation' do
it 'user adds a deploy token' do
Flow::Login.sign_in
deploy_token_name = 'deploy token name'
one_week_from_now = Date.today + 7
deploy_token = Resource::DeployToken.fabricate_via_browser_ui! do |resource|
resource.name = deploy_token_name
resource.expires_at = one_week_from_now
end
expect(deploy_token.username.length).to be > 0
expect(deploy_token.password.length).to be > 0
end
end
end
end
|