def test_MissedS3folder(self): """Test mandatory s3folder field""" dashboardPage = DashboardPage(self.driver) dashboardPage.goToOnboard() dashboardPage.createCustomer(USER_NAME, "") errMes = dashboardPage.getErrorNoS3() self.assertEqual(errMes.text, ERR_S3)
def test_MissedName(self): """Test mandatory name field""" dashboardPage = DashboardPage(self.driver) dashboardPage.goToOnboard() dashboardPage.createCustomer("", S3FOLDER) err1, err2 = dashboardPage.getErrorsNoName() self.assertEqual(err1.text, ERR_MSG1) self.assertEqual(err2.text, ERR_MSG2)
def test_newCustomer(self): """Verify customer record was created""" dashboardPage = DashboardPage(self.driver) dashboardPage.goToOnboard() dashboardPage.createCustomer(USER_NAME, S3FOLDER) dashboardPage.goToCustomerList() dashboardPage.sortRecentCustomer() initialId = dashboardPage.getId() editPage = dashboardPage.goToEditPage() checkId, checkName, checkS3Folder, maxSize, panoMaxSize, checkBox = editPage.getParameters( ) self.assertEqual(initialId, checkId) self.assertEqual(checkName, USER_NAME) self.assertEqual(checkS3Folder, S3FOLDER) self.assertEqual(maxSize, MAX_SIZE) self.assertEqual(panoMaxSize, PANO_MAX_SIZE) self.assertEqual(CHECK_BOX, checkBox)