Scouting: Add Practice Match to Data Entry
I also deleted some tests from last year that used an old version of Action from db.go since they were causing problems.
I probably need to go through and delete other old database functions, etc in a future patch.
Signed-off-by: Emily Markova <emily.markova@gmail.com>
Change-Id: Ib13dbbbde901cc3e7c9aaf4d242eb6bac714aa3a
diff --git a/scouting/scouting_test.cy.js b/scouting/scouting_test.cy.js
index e4c4ead..2727104 100644
--- a/scouting/scouting_test.cy.js
+++ b/scouting/scouting_test.cy.js
@@ -187,6 +187,21 @@
headerShouldBe('1 Init ');
});
+ it('should: allow users to scout practice matches.', () => {
+ switchToTab('Entry');
+ headerShouldBe(' Team Selection ');
+ setInputTo('#team_number', '1');
+
+ // The default team information should be invalid.
+ cy.contains('button', 'Next').should('be.disabled');
+
+ // Click the checkmark to designate this as pre-scouting.
+ // We should now be able to continue scouting.
+ cy.get('#practice_match').click();
+ clickButton('Next');
+ headerShouldBe('1 Init ');
+ });
+
it('should: allow users to submit pit images.', () => {
switchToTab('Pit');
headerShouldBe('Pit Scouting');