Commit 436fe487 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[caissedepargne] Fix datepourie

The date changes. ex: "datePourIE": "Wed Jan 30 2019 11:54:07 GMT+0100 (heure normale d’Europe centrale)".
Moreover to reach the consumer loans space, we need to delete the old
jsessionID cookie.

Closes: 35859@sibi Closes: 9234@zendesk Closes: 9366@zendesk
parent 78cea74a
......@@ -333,7 +333,7 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
days = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')
month = ('Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec')
now = datetime.datetime.today()
d = '%s %s %s %s:%s:%s GMT 0100 (CET)' % (days[now.weekday()], month[now.month - 1], now.year, now.hour, format(now.minute, "02"), now.second)
d = '%s %s %s %s %s:%s:%s GMT+0100 (heure normale d’Europe centrale)' % (days[now.weekday()], now.day, month[now.month - 1], now.year, now.hour, format(now.minute, "02"), now.second)
if self.home.is_here():
msg = self.page.loan_unavailable_msg()
if msg:
......
......@@ -459,6 +459,9 @@ class IndexPage(LoggedPage, HTMLPage):
account._card_links = []
if "renouvelables" in CleanText('.')(title):
if 'JSESSIONID' in self.session.cookies:
# Need to delete this to access the consumer loans space (a new one will be created)
del self.browser.session.cookies['JSESSIONID']
self.go_loans_conso(tr)
d = self.browser.loans_conso()
if d:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment