zammad/spec/system/basic/session_invalid_spec.rb
2026-01-02 15:41:09 +02:00

14 lines
511 B
Ruby

# Copyright (C) 2012-2026 Zammad Foundation, https://zammad-foundation.org/
require 'rails_helper'
RSpec.describe 'Session invalid detection', authenticated_as: true, authentication_type: :form, type: :system do
context 'when session will be deleted on the backend' do
it 'redirects to login page' do
# Delete the session on backend
SessionHelper.destroy(SessionHelper.list.first.id)
expect(page).to have_text('The session is no longer valid. Please log in again.')
end
end
end