trabajo-afectivo/spec/system/system/monitoring_spec.rb

25 lines
638 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
require 'rails_helper'
RSpec.describe 'System > Monitoring', type: :system do
context 'when showing the token' do
it 'works correctly' do
visit 'system/monitoring'
within :active_content do
token = find('.js-token').value
url = find('.js-url').value
expect(url).to include(token)
click '.js-resetToken'
new_token = find('.js-token').value
new_url = find('.js-url').value
expect(new_url).to include(new_token)
expect(token).not_to eq(new_token)
end
end
end
end