23 lines
670 B
Ruby
23 lines
670 B
Ruby
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
|