mirror of https://github.com/docusealco/docuseal
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
440 B
18 lines
440 B
# frozen_string_literal: true
|
|
|
|
RSpec.describe 'API Settings' do
|
|
let!(:account) { create(:account) }
|
|
let!(:user) { create(:user, account:) }
|
|
|
|
before do
|
|
sign_in(user)
|
|
visit settings_api_index_path
|
|
end
|
|
|
|
it 'shows verify signed PDF page' do
|
|
expect(page).to have_content('API')
|
|
token = user.access_token.token
|
|
expect(page).to have_field('X-Auth-Token', with: token.sub(token[5..], '*' * token[5..].size))
|
|
end
|
|
end
|