add base feature specs

This commit is contained in:
Alex Turchyn committed 2023-08-20 15:15:48 +03:00
1 parent 6b4e7c2264
commit cbc6f4497a
32 files changed
+1134 -12

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
# frozen_string_literal: true
require 'rails_helper'
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')
expect(page).to have_field('X-Auth-Token', with: user.access_token.token)
end
end