add base feature specs

This commit is contained in:
Alex Turchyn
2023-08-20 12:42:47 +03:00
parent 6b4e7c2264
commit cbc6f4497a
32 changed files with 1134 additions and 12 deletions
+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