def test_empty_status(driver, user_log_in_log_out): # Try to create empty status dashboard = DashboardPage(driver) assert dashboard.status_input_field.placeholder == "What’s happening?" dashboard.status_add_click() dashboard.status_submit() result_message = dashboard.inform_message_box.text dashboard.close_inform_message_box() assert result_message == "PLEASE FILL THE FORM PROPERLY"
def inform_message_box(driver, results_box_message): dashboard = DashboardPage(driver) result_message = dashboard.inform_message_box.text dashboard.close_inform_message_box() assert result_message == results_box_message