diff --git a/tests/test_selenium/test_corpus_init.py b/tests/test_selenium/test_corpus_init.py index c76232b..4925644 100644 --- a/tests/test_selenium/test_corpus_init.py +++ b/tests/test_selenium/test_corpus_init.py @@ -731,18 +731,13 @@ def test_registration_filters(self): self.writeMultiline(self.driver_find_element_by_id("tokens"), PLAINTEXT_CORPORA["Wauchier"]["data"]) self.driver_find_element_by_id("label_checkbox_create").click() self.driver_find_element_by_id("punct").click() - self.driver.save_screenshot("./test_registration_filter0.png") self.driver_find_element_by_id("submit").click() - self.driver.save_screenshot("./test_registration_filter.png") self.driver.implicitly_wait(15) self.driver_find_element_by_link_text("Dashboard").click() controllists_dashboard = self.driver_find_element_by_id("control_lists-dashboard") - self.driver.save_screenshot("./test_registration_filter2.png") self.element_find_element_by_partial_link_text(controllists_dashboard, "Wauchier").click() - self.driver.save_screenshot("./test_registration_filter3.png") self.driver_find_element_by_link_text("Ignore values").click() - self.driver.save_screenshot("./test_registration_filter4.png") punct = self.driver_find_element_by_id("punct") numeral = self.driver_find_element_by_id('numeral') self.assertTrue(punct.get_property("checked")) diff --git a/tests/test_selenium/test_token_correct.py b/tests/test_selenium/test_token_correct.py index 878314c..f8d1f14 100644 --- a/tests/test_selenium/test_token_correct.py +++ b/tests/test_selenium/test_token_correct.py @@ -99,6 +99,28 @@ def test_edit_morph_with_allowed(self): self.assert_saved(row) 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.addCorpus(with_token=True) + self.driver.save_screenshot("./test_edit_token_filter1.png") + self.driver.refresh() + # modifier les filtres + self.driver_find_element_by_link_text("Dashboard").click() + controllists_dashboard = self.driver_find_element_by_id("control_lists-dashboard") + self.driver.save_screenshot("./test_edit_token_filter2.png") + self.element_find_element_by_partial_link_text(controllists_dashboard, "Wauchier").click() + self.driver.save_screenshot("./test_edit_token_filter4.png") + self.driver_find_element_by_link_text("Ignore values").click() + self.driver.save_screenshot("./test_edit_token_filter5.png") + self.driver_find_element_by_id("punct").click() + self.driver_find_element_by_id("submit").click() + self.driver.save_screenshot("./test_edit_token_filter6.png") + self.driver.implicitly_wait(15) + + # ajouter corpus + token, status_text, row = self.edith_nth_row_value(",", id_row="1") + self.assert_token_has_values(token, lemma=",") + self.assert_saved(row) + class TestTokensCorrectFloovant(TokenCorrectBase): CORPUS = "floovant" @@ -164,6 +186,8 @@ def test_edit_token_with_same_value(self): self.assertNotIn("table-changed", row.get_attribute("class")) + + class TestTokensEditTwoCorpora(TokenCorrect2CorporaBase): CORPUS = "wauchier" CORPUS_ID = "1" diff --git a/tests/test_selenium/test_tokens_edit.py b/tests/test_selenium/test_tokens_edit.py index d25bf1a..64a8468 100644 --- a/tests/test_selenium/test_tokens_edit.py +++ b/tests/test_selenium/test_tokens_edit.py @@ -183,3 +183,4 @@ def test_edit_delete(self): [("Addition", "oulala", ""), ("Deletion", "", "oulala")], "History should be saved" ) +