Scouting: Move comment box for data entry to the end
Move the “comments” from Climb page to end of Other page in data
scouting entry form to make it more clear that it is a general
comments box and not a climbing comments box.
Signed-off-by: Kiran Haywood <kiranhaywood@gmail.com>
Change-Id: I3b0adbcf36108007c9a84314d078340313ffa949
diff --git a/scouting/scouting_test.ts b/scouting/scouting_test.ts
index a34d98c..24d96f3 100644
--- a/scouting/scouting_test.ts
+++ b/scouting/scouting_test.ts
@@ -241,7 +241,6 @@
expect(await getHeadingText()).toEqual('Climb');
await element(by.id('high')).click();
- await setTextboxByIdTo('comment', 'A very useful comment here.');
await element(by.buttonText('Next')).click();
expect(await getHeadingText()).toEqual('Other');
@@ -249,6 +248,7 @@
await adjustNthSliderBy(1, 1);
await element(by.id('no_show')).click();
await element(by.id('mechanically_broke')).click();
+ await setTextboxByIdTo('comment', 'A very useful comment here.');
await element(by.buttonText('Next')).click();
expect(await getHeadingText()).toEqual('Review and Submit');
@@ -273,7 +273,6 @@
// Validate Climb.
await expectReviewFieldToBe('Climb Level', 'High');
- await expectReviewFieldToBe('Comments', 'A very useful comment here.');
// Validate Other.
await expectReviewFieldToBe('Defense Played On Rating', '3');
@@ -282,6 +281,7 @@
await expectReviewFieldToBe('Never moved', 'false');
await expectReviewFieldToBe('Battery died', 'false');
await expectReviewFieldToBe('Broke (mechanically)', 'true');
+ await expectReviewFieldToBe('Comments', 'A very useful comment here.');
await element(by.buttonText('Submit')).click();
await browser.wait(