-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13051 from TEAMMATES/account-request-form
[#11878] Account request form
- Loading branch information
Showing
134 changed files
with
6,515 additions
and
1,411 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 55 additions & 0 deletions
55
src/e2e/java/teammates/e2e/cases/sql/AdminHomePageE2ETest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
package teammates.e2e.cases.sql; | ||
|
||
import org.testng.annotations.Test; | ||
|
||
import teammates.common.util.AppUrl; | ||
import teammates.common.util.Const; | ||
import teammates.e2e.pageobjects.AdminHomePage; | ||
|
||
/** | ||
* SUT: {@link Const.WebPageURIs#ADMIN_HOME_PAGE}. | ||
*/ | ||
public class AdminHomePageE2ETest extends BaseE2ETestCase { | ||
|
||
@Override | ||
protected void prepareTestData() { | ||
// not needed | ||
} | ||
|
||
@Test | ||
@Override | ||
public void testAll() { | ||
AppUrl url = createFrontendUrl(Const.WebPageURIs.ADMIN_HOME_PAGE); | ||
AdminHomePage homePage = loginAdminToPage(url, AdminHomePage.class); | ||
|
||
______TS("Test adding instructors with both valid and invalid details"); | ||
|
||
String name = "AHPUiT Instrúctör WithPlusInEmail"; | ||
String email = "AHPUiT+++_.instr1!@gmail.tmt"; | ||
String institute = "TEAMMATES Test Institute 1"; | ||
|
||
homePage.queueInstructorForAdding(name, email, institute); | ||
|
||
String singleLineDetails = "Instructor With Invalid Email | invalidemail | TEAMMATES Test Institute 1"; | ||
|
||
homePage.queueInstructorForAdding(singleLineDetails); | ||
|
||
homePage.addAllInstructors(); | ||
|
||
String successMessage = homePage.getMessageForInstructor(0); | ||
assertTrue(successMessage.contains( | ||
"Instructor \"AHPUiT Instrúctör WithPlusInEmail\" has been successfully created")); | ||
|
||
String failureMessage = homePage.getMessageForInstructor(1); | ||
assertTrue(failureMessage.contains( | ||
"\"invalidemail\" is not acceptable to TEAMMATES as a/an email because it is not in the correct format.")); | ||
|
||
homePage.reloadPage(); | ||
|
||
______TS("Verify that newly added instructor appears in account request table"); | ||
|
||
homePage.verifyInstructorInAccountRequestTable(name, email, institute); | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.