Settings page for adding verified nostr pubkeys
This commit is contained in:
22
spec/features/settings/experiments_spec.rb
Normal file
22
spec/features/settings/experiments_spec.rb
Normal file
@@ -0,0 +1,22 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'Experimental Settings', type: :feature do
|
||||
let(:user) { create :user, cn: 'jimmy', ou: 'kosmos.org' }
|
||||
|
||||
before do
|
||||
login_as user, scope: :user
|
||||
end
|
||||
|
||||
describe 'Adding a nostr pubkey' do
|
||||
scenario 'Without nostr browser extension available' do
|
||||
visit setting_path(:experiments)
|
||||
expect(page).to have_content("No browser extension found")
|
||||
expect(page).to have_css('button[data-settings--nostr-pubkey-target=setPubkey]:disabled')
|
||||
end
|
||||
|
||||
# scenario 'Successfully saving a key' do
|
||||
# Note: Needs a more complex JS testing setup (maybe poltergeist), not
|
||||
# worth it for now
|
||||
# end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user