From 025a31f15a1aff1541f167ef38b542957cd6b4fe Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Wed, 7 Oct 2020 17:29:31 +0100 Subject: [PATCH] Minor test fixes --- RIGS/models.py | 2 +- RIGS/tests/pages.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RIGS/models.py b/RIGS/models.py index 39fa31bd..4c50531a 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -281,7 +281,7 @@ class EventManager(models.Manager): return event_count -@reversion.register(follow=['items'], ignore_duplicates=True) # TODO Would be better to find why duplicates are created... +@reversion.register(follow=['items'])#, ignore_duplicates=True) # TODO Would be better to find why duplicates are created... class Event(models.Model, RevisionMixin): # Done to make it much nicer on the database PROVISIONAL = 0 diff --git a/RIGS/tests/pages.py b/RIGS/tests/pages.py index cf366e8e..18450cf7 100644 --- a/RIGS/tests/pages.py +++ b/RIGS/tests/pages.py @@ -17,7 +17,7 @@ class Index(BasePage): class Rigboard(BasePage): URL_TEMPLATE = reverse('rigboard') - _add_item_selector = (By.XPATH, "//a[contains(., 'New')]") + _add_item_selector = (By.XPATH, "//a[contains(@class,'btn-primary') and contains(., 'New')]") _event_row_locator = (By.ID, 'event_row') def add(self):