Allow scouts to pre-scout matches using the app
Users can now select the new "pre-scouting" checkbox. That will bypass
the match list validation.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I35fed86b8107fc11a1335f73e679b1272d4da81b
diff --git a/scouting/scouting_test.cy.js b/scouting/scouting_test.cy.js
index 3087454..a69465f 100644
--- a/scouting/scouting_test.cy.js
+++ b/scouting/scouting_test.cy.js
@@ -108,6 +108,21 @@
cy.contains('button', 'Next').should('be.disabled');
});
+ it('should: allow users to scout non-existent matches when pre-scouting.', () => {
+ 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('#pre_scouting').click();
+ clickButton('Next');
+ headerShouldBe('1 Init ');
+ });
+
it('should: let users enter match information manually.', () => {
switchToTab('Entry');
headerShouldBe(' Team Selection ');