Exemplo n.º 1
0
 def setUp(self) -> None:
     default_setup(self)
     auth_as_employer_has_comp(self)
     self.profile_page = ProfilePage(self.driver)
     self.vac_page = CreateVacancyPage(self.driver)
     self.vac_list = VacanciesPage(self.driver)
     self.vac_form = self.vac_page.form
     self.vac_page.open()
Exemplo n.º 2
0
 def test_edit_email(self):
     check_value = '*****@*****.**'
     auth_as_employer_has_comp(self)
     self.profile_page.open()
     self.profile_page.edit(check_value, 3)
     self.assertTrue(self.profile_page.get_text(check_value, 2))
     self.driver.refresh()
     self.profile_page.edit('*****@*****.**', 3)
Exemplo n.º 3
0
 def test_send_by_button(self):
     auth_as_employer_has_comp(self)
     self.chatPage.open()
     self.chatPage.click_on_another_chat(0)
     self.chatPage.click_on_send_msg(self.TEST_MSG)
     text = self.chatPage.get_last_msg()
     self.assertEqual(text, self.TEST_MSG)
     self.chatPage.click_on_send_msg_by_enter(self.TEST_MSG2)
     text1 = self.chatPage.get_last_msg()
     self.assertEqual(text1, self.TEST_MSG2)
Exemplo n.º 4
0
    def test_check_new_chat_after_request(self):
        self.scenario.create_resume()
        self.vacanciesPage.open()
        self.vacanciesPage.search_vacancy_by_keyword(self.VACANCY_NAME)
        self.vacanciesPage.click_on_first_vacancy()
        self.vacancyPage.click_on_response()
        self.vacancyPage.click_on_first_resume()
        self.chatPage.open()
        self.main_page.open()
        self.main_page.click_logout()

        auth_as_employer_has_comp(self)
        self.chatPage.open()
        name = self.chatPage.get_first_chat_name()
        firstAndLastName = name.split(" ")
        self.assertEqual(firstAndLastName[0], self.data["NAME"])
        self.assertEqual(firstAndLastName[1], self.data["SURNAME"])
Exemplo n.º 5
0
    def setUp(self) -> None:
        default_setup(self)
        auth_as_employer_has_comp(self)
        self.vacancy = VacancyScenario(test=self)
        self.vacancy.create_vacancy()
        self.uri_to_delete = self.vacancy.get_vacancy_uri

        self.resume_page = ResumePage(self.driver)
        self.resume = self.resume_page.form

        self.resume_list = ResumesPage(self.driver)
        self.resume_list_form = self.resume_list.list

        self.profile_page = ProfilePage(self.driver)
        self.profile_form = self.profile_page.profile_form

        self.resume_list.open()
        self.resume_list_form.go_first_resume_page()
Exemplo n.º 6
0
    def test_response(self):
        self.scenario.create_resume()
        self.main_page.click_logout()

        auth_as_employer_has_comp(self)
        vacancy = VacancyScenario(test=self)
        vacancy.create_vacancy()
        self.resume_list.open()
        self.resume_list_form.go_first_resume_page()
        self.resume.response()
        self.resume.get_response_done()

        self.vacancies.open()
        self.vacancies.click_on_first_vacancy()
        vacancy.delete_vacancy()
        self.main_page.click_logout()

        setup_auth(self, self.reg_data)
        self.main_page.click_notif_popup()
        self.main_page.wait_notif_open()
        self.assertTrue(self.main_page.check_response())
        self.main_page.delete_response()
        self.scenario.delete_resume()
Exemplo n.º 7
0
    def test_check_new_message_after_request(self):
        self.scenario.create_resume()
        self.vacanciesPage.open()
        self.vacanciesPage.search_vacancy_by_keyword(self.VACANCY_NAME)
        self.vacanciesPage.click_on_first_vacancy()
        self.vacancyPage.click_on_response()
        self.vacancyPage.click_on_first_resume()

        self.main_page.open()
        self.main_page.click_logout()

        auth_as_employer_has_comp(self)
        self.chatPage.open()
        self.chatPage.click_on_another_chat(0)
        self.chatPage.click_on_send_msg(self.TEST_MSG)

        self.main_page.open()
        self.main_page.click_logout()
        logData = {'EMAIL': self.data["EMAIL"], 'PASSWORD': self.data["PASSWORD"]}
        setup_auth(self, logData)
        self.chatPage.open()
        self.chatPage.click_on_another_chat(0)
        text = self.chatPage.get_last_msg()
        self.assertEqual(text, self.TEST_MSG)
Exemplo n.º 8
0
 def test_create_vacancy(self):
     auth_as_employer_has_comp(self)
     self.main_page.click_create_vacancy()
     create_vac = CreateVacancyPage(self.driver)
     self.assertTrue(create_vac.is_open())
Exemplo n.º 9
0
 def test_edit_vac(self):
     auth_as_employer_has_comp(self)
     self.profile_page.open()
     self.assertTrue(self.profile_page.click_link_to_my_cards())
     self.profile_page.edit_card()
Exemplo n.º 10
0
 def test_link_to_my_fav_as_empl(self):
     auth_as_employer_has_comp(self)
     self.profile_page.open()
     self.assertTrue(self.profile_page.click_to_link_myFavorite())