Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

survey: Return survey results for single-page assessments too. #12299

Merged
merged 4 commits into from Dec 13, 2016

Conversation

breville
Copy link
Member

@breville breville commented Dec 5, 2016

No description provided.

@ashercodeorg
Copy link
Contributor

Is this meant to be staging or staging-next?

@mehalshah
Copy link
Contributor

LGTM but echoing Asher's comments - this should be against staging-next

@pcardune
Copy link
Contributor

pcardune commented Dec 7, 2016

should there be a corresponding change to unit tests for this?

@@ -360,6 +360,113 @@ def make_progress_in_section(script)
assert_equal expected_response, JSON.parse(@response.body)
end

test "should get surveys for section with script with single page anonymous level_group assessment" do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@breville breville changed the base branch from staging to staging-next December 8, 2016 02:07
With the change to make level groups with pages "long assessments" even if they have a single page, we could no longer have a stage in allthethings.script that had two of these.  The single page assessment is moved to a new stage.  Also, some improvements were made to the tests to make them run more reliably on localhost with Chromedriver.
@@ -767,10 +767,11 @@ def generate_teacher_student(name, teacher_authorized)
steps %Q{
Then I am on "http://code.org/teacher-dashboard#/sections"
And I wait to see ".jumbotron"
And I wait for 3 seconds
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bjvanminnen I made a few changes that seemed to help here.

@@ -767,10 +767,11 @@ def generate_teacher_student(name, teacher_authorized)
steps %Q{
Then I am on "http://code.org/teacher-dashboard#/sections"
And I wait to see ".jumbotron"
And I wait for 3 seconds
And I click selector ".btn-white:contains('New section')" once I see it
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Bjvanminnen Any idea why a 3 second delay is needed despite having once I see it here?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope.

@breville breville changed the base branch from staging-next to staging December 12, 2016 21:16
@breville breville merged commit c520310 into staging Dec 13, 2016
@breville breville deleted the fix-single-page-survey-results branch December 13, 2016 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants