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 Experiment flag to School Association, UI tests #57873

Merged
merged 7 commits into from Apr 11, 2024

Conversation

hannahbergam
Copy link
Contributor

@hannahbergam hannahbergam commented Apr 8, 2024

This PR adds an experiment flag school_association_v2 to be used to test the new school association flow. It also utilizes that flag to write a feature file (including an eyes test) for the sign up flow. I was able to watch it work/troubleshoot via a Saucelabs tunnel (and commenting out the eyes lines) - See the saucelabs run below.

As a bonus, we didn't have any ui/eyes test coverage of this sign up flow before, so yay! 🎉

trimmed.mp4

This required adding some ids to existing buttons/inputs/dropdowns.

Additionally, this will technically make the new school association public for folks to experience on production with the experiment flag ?enableExperiments=school_association_v2

Warning!!

The AP CSP Create Performance Task is in progress. The most critical dates are from April 3 - April 30, 2024. Please consider any risk introduced by this PR that could affect our students taking AP CSP. Code.org students taking AP CSP primarily use App Lab for their Create Task, however a small percent use Game Lab. Carefully consider whether your change has any risk of alterering, changing, or breaking anything in these two labs. Even small changes, such as a different button color, are considered significant during this time period. Reach out to the Student Learning team or Curriculum team for more details.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@hannahbergam hannahbergam changed the title added experiment flag, started feature file Adds Experiment flag to School Association, UI tests Apr 8, 2024
@@ -36,7 +36,6 @@ const EVENTS = {
COUNTRY_SELECTED: 'User Selects Country',
ZIP_CODE_ENTERED: 'Valid Zip Code Entered',
SCHOOL_SEARCH_INPUT_ENTERED: 'School Search Input Entered',
SCHOOL_LIST_OPENED: 'School List Opened',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@@ -236,28 +237,37 @@ $(document).ready(() => {

function renderSchoolInfo() {
if (schoolInfoMountPoint) {
ReactDOM.render(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is not edited: just moved

@@ -51,7 +51,6 @@ export default function SchoolZipSearch({fieldNames, zip}) {
sendAnalyticsEvent(EVENTS.DO_NOT_TEACH_AT_SCHOOL_CLICKED, {});
} else if (schoolId === SELECT_A_SCHOOL) {
ncesId = '';
// sendAnalyticsEvent(EVENTS.SCHOOL_LIST_OPENED, {});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See comment above: we decided to move forward without this event

@hannahbergam hannahbergam marked this pull request as ready for review April 9, 2024 00:05
@hannahbergam hannahbergam requested a review from a team April 9, 2024 00:05
@dmcavoy
Copy link
Contributor

dmcavoy commented Apr 9, 2024

So exciting to see this! @hannahbergam one wonder. Can we make the box for school association as big as it will need to be for all the inputs? I feel like that will cut down on the "surprise" feeling.

@hannahbergam
Copy link
Contributor Author

So exciting to see this! @hannahbergam one wonder. Can we make the box for school association as big as it will need to be for all the inputs? I feel like that will cut down on the "surprise" feeling.

I could understand that. I think it might look a little funky as we only need two fields for non-us (and I imagine I'd be setting a fixed height large enough for the max fields), but maybe that's all in my head. Do you want just empty grey space?

@dmcavoy
Copy link
Contributor

dmcavoy commented Apr 9, 2024

So exciting to see this! @hannahbergam one wonder. Can we make the box for school association as big as it will need to be for all the inputs? I feel like that will cut down on the "surprise" feeling.

I could understand that. I think it might look a little funky as we only need two fields for non-us (and I imagine I'd be setting a fixed height large enough for the max fields), but maybe that's all in my head. Do you want just empty grey space?

Ya I wondered about this too. I wonder what Moshe thinks. Maybe we ask him tomorrow?

@hannahbergam
Copy link
Contributor Author

So exciting to see this! @hannahbergam one wonder. Can we make the box for school association as big as it will need to be for all the inputs? I feel like that will cut down on the "surprise" feeling.

I could understand that. I think it might look a little funky as we only need two fields for non-us (and I imagine I'd be setting a fixed height large enough for the max fields), but maybe that's all in my head. Do you want just empty grey space?

Ya I wondered about this too. I wonder what Moshe thinks. Maybe we ask him tomorrow?

🙌🏼

Copy link
Contributor

@bethanyaconnor bethanyaconnor left a comment

Choose a reason for hiding this comment

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

🎉

@hannahbergam hannahbergam merged commit 8f9122f into staging Apr 11, 2024
2 checks passed
@hannahbergam hannahbergam deleted the hbergam/school-assoc-experiment-flag branch April 11, 2024 18:30
hannahbergam added a commit that referenced this pull request Apr 12, 2024
hannahbergam added a commit that referenced this pull request Apr 12, 2024
hannahbergam added a commit that referenced this pull request Apr 12, 2024
#57980)

* Revert "Revert "Adds Experiment flag to School Association, UI tests (#57873)…"

This reverts commit bda7d08.

* writing new step for random email
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

3 participants