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

Cypress tests for Events in site-features page #522

Merged
merged 6 commits into from
Mar 18, 2024

Conversation

sangeetha-nayak
Copy link
Contributor

GA events test scripts for site-features step from both general onboarding and ecommerce onboarding
Screenshot (447)
Screenshot (448)

it( 'Check to make sure Sidebar opens', () => {
BasicSidebarCheck();
} );
};
}
Copy link
Member

Choose a reason for hiding this comment

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

Why have we removed ';' at the end?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Its due to linting. I used command provided earlier.
npx wp-scripts lint-js <file-path> --no-ignore --fix

@@ -18,7 +18,11 @@ export const APIList = {
basic_info:
'/index.php?rest_route=%2Fnewfold-onboarding%2Fv1%2Fevents%2Fbatch&flow=wp-setup&_locale=user',
basic_info_ecomm:
'/index.php?rest_route=%2Fnewfold-onboarding%2Fv1%2Fevents%2Fbatch&flow=ecommerce&_locale=user'
'/index.php?rest_route=%2Fnewfold-onboarding%2Fv1%2Fevents%2Fbatch&flow=ecommerce&_locale=user',
Copy link
Member

Choose a reason for hiding this comment

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

we are using the same API for general and ecomm flow, so I think it's better to have only 2 APIs, one for general and one for ecomm.
also, please update where the APIs have been used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@avneet-raj avneet-raj added the Ready to merge The Code Review and QA is done and it can be merged. label Mar 18, 2024
@arunshenoy99 arunshenoy99 merged commit f139d22 into trunk Mar 18, 2024
3 of 4 checks passed
@arunshenoy99 arunshenoy99 deleted the tests/site-features-event branch March 18, 2024 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready to merge The Code Review and QA is done and it can be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants