2021-10-26 11:44:53 +02:00
|
|
|
|
describe 'Outdated browsers support:' do
|
2019-12-03 16:02:08 +01:00
|
|
|
|
context 'when the user browser is outdated' do
|
|
|
|
|
before(:each) do
|
2020-07-01 22:11:53 +02:00
|
|
|
|
ie_10_user_agent = 'Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0; .NET4.0E; .NET4.0C; InfoPath.3)'
|
|
|
|
|
Capybara.page.driver.header('user-agent', ie_10_user_agent)
|
2019-12-03 16:02:08 +01:00
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
scenario 'a banner is displayed' do
|
|
|
|
|
visit new_user_session_path
|
2024-03-04 16:35:09 +01:00
|
|
|
|
expect(page).to have_content('Il n’est plus compatible avec')
|
2024-04-02 21:30:38 +02:00
|
|
|
|
expect(page).to have_content('Votre navigateur internet, Internet Explorer 10, est malheureusement trop ancien')
|
2019-12-03 16:02:08 +01:00
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
end
|