Skip to content

Commit

Permalink
test bug control filters - ajout users"
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliettejns committed Jul 12, 2024
1 parent f97e432 commit b8bbd51
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tests/test_selenium/test_corpus_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,8 @@ def lemmatizing():
second_app.close()

def test_registration_filters(self):
self.add_user("foo", "foo")
self.login("%s.%s@ppa.fr" % ("foo", "foo"), self.app.config['ADMIN_PASSWORD'])
# Click register menu link
self.driver_find_element_by_id("new_corpus_link").click()
self.driver.implicitly_wait(15)
Expand Down
6 changes: 2 additions & 4 deletions tests/test_selenium/test_manage_control_lists_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,9 @@ def test_corpus_creator_is_owner(self):
self.assertTrue(len([e for e in el if e.get_property("checked")]) == 1)

def test_change_filter(self):
# grant access to foo
foo_email = self.add_user("foo", "bar")
self.add_user("foo", "foo")
self.login("%s.%s@ppa.fr" % ("foo", "foo"), self.app.config['ADMIN_PASSWORD'])
self.addControlLists("wauchier")

self.addControlListsUser("Wauchier", foo_email, False)
self.driver.refresh()
self.go_to_control_lists_management("Wauchier")

Expand Down
2 changes: 2 additions & 0 deletions tests/test_selenium/test_token_correct.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def test_edit_morph_with_allowed(self):
self.assert_token_has_values(token, lemma="mout", POS="ADVgen", morph="NOMB.=s|GENRE=m|CAS=n")

def test_edit_token_with_filter(self):
self.add_user("foo", "foo")
self.login("%s.%s@ppa.fr" % ("foo", "foo"), self.app.config['ADMIN_PASSWORD'])
self.addCorpus(with_token=True)
self.driver.save_screenshot("./test_edit_token_filter1.png")
self.driver.refresh()
Expand Down

0 comments on commit b8bbd51

Please sign in to comment.