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

Adds Survey to Rate Challenges After Correct Flag Submission #224 #532

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

sesheikholeslam
Copy link
Contributor

@sesheikholeslam sesheikholeslam commented Jul 17, 2020

Closes #224, #530: Allows users to complete a survey regarding a challenge once the user submits a correct flag to the challenge.

@rbclark rbclark self-requested a review July 23, 2020 15:53
app/helpers/surveys_helper.rb Outdated Show resolved Hide resolved
app/views/surveys/_form.html.haml Outdated Show resolved Hide resolved
app/views/surveys/_star_rating.html.haml Outdated Show resolved Hide resolved
app/models/submitted_flag.rb Outdated Show resolved Hide resolved
test/controllers/challenges_controller_test.rb Outdated Show resolved Hide resolved
@sesheikholeslam sesheikholeslam changed the title Adds Survey to Rate Challenges After Correct Flag Submission Adds Survey to Rate Challenges After Correct Flag Submission #224 Jul 28, 2020
@sesheikholeslam sesheikholeslam requested a review from rbclark July 29, 2020 18:28
Removing JavaScript dependency manually from within Github, as the desktop client doesn't want to commit directly to this PR.
Removing JavaScript dependency manually from within Github, as the desktop client doesn't want to commit directly to this PR.
Removing JavaScript dependency manually from within Github, as the desktop client doesn't want to commit directly to this PR.
test/factories/surveys.rb Outdated Show resolved Hide resolved
test/controllers/surveys_controller_test.rb Outdated Show resolved Hide resolved
click_on "Update Survey"

assert_text "Survey was successfully updated"
click_on "Back"
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be good to verify that the survey successfully updates in the database here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

From what I can tell, these system tests aren't running at test time because neither Capybara or Selenium are required gems. Running the tests manually it tries to GET /surveys which doesn't exist. I think Sean was planning on having a section to edit/create survey submissions and these system tests were for that area. Not sure how he created the tests without the pages existing though.

test/system/surveys_test.rb Show resolved Hide resolved
@jkufro
Copy link

jkufro commented Aug 15, 2020

In progress PR that suggests an modified approach: sesheikholeslam#1

@camdenmoors
Copy link
Collaborator

Now also closes #530

@camdenmoors camdenmoors linked an issue Aug 17, 2020 that may be closed by this pull request
@mergify
Copy link
Contributor

mergify bot commented May 5, 2021

This pull request has conflict. Could you fix it @sesheikholeslam?

1 similar comment
@mergify
Copy link
Contributor

mergify bot commented Sep 26, 2022

This pull request has conflict. Could you fix it @sesheikholeslam?

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.

Rate Challenge after Submission Flag Submission box does not disappear until full page reload
4 participants