mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
14 lines
511 B
Ruby
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
|