René's URL Explorer Experiment


Title: Add: Cucumber/Gherkin step detection and assertion logging for test observability by prathams-cmd · Pull Request #1053 · browserstack/browserstack-cypress-cli · GitHub

Open Graph Title: Add: Cucumber/Gherkin step detection and assertion logging for test observability by prathams-cmd · Pull Request #1053 · browserstack/browserstack-cypress-cli

X Title: Add: Cucumber/Gherkin step detection and assertion logging for test observability by prathams-cmd · Pull Request #1053 · browserstack/browserstack-cypress-cli

Description: What is this about? Assertions logs and Cucumber/Gherkin step definitions were not showing up in observability log. I used Cypress log:changed event to detect these. I used createdAt and updatedAt timestamps and pushed COMMAND_START and COMMAND_END events for assertions logs and passed it as test_observability_command. The functions for showing cucumber step definitions were already placed I just detected them and passed it as test_observability_step. Related Jira task/s https://browserstack.atlassian.net/browse/SDK-4928 https://browserstack.atlassian.net/browse/SDK-4865 Automation cases to add Cypress test script it('displays two todo items by default', () => { cy.log('Verifying default todo items are displayed') // should (length) cy.get('.todo-list li').should('have.length', 2) // expect (first item text) cy.get('.todo-list li').first().then(($first) => { expect($first.text()).to.equal('Pay electric bill') }) // assert (last item text) cy.get('.todo-list li').last().then(($last) => { assert.include($last.text(), 'Walk the dog', 'Last item contains expected text') }) }) Cucumber test script import { Given, When, Then, defineStep } from "@badeball/cypress-cucumber-preprocessor"; import "cypress-xpath"; import Login from "../pages/login.page"; import Purchase from "../pages/purchase.page"; import Orders from "../pages/orders.page"; const login = new Login(); const purchase = new Purchase(); const orders = new Orders(); Given("I navigate to website", () => { cy.visit(Cypress.config().baseUrl + "signin"); }); defineStep("I wait for the page to load", () => { cy.document().its("readyState").should("eq", "complete"); }); When("I SignIn as {string} with {string} password", (username, password) => { login .username() .should("be.visible") .click({ force: true }) .type(username + "{enter}"); login .password() .click({ force: true }) .type(password + "{enter}"); login.logInButton().click(); }); When("I add three products to cart", () => { purchase.item1().click({ force: true }); purchase.item2().click({ force: true }); purchase.item3().click({ force: true }); }); When("I click on Buy Button", () => { purchase.buyButton().click({ force: true }); }); When( "I enter shipping details {string}, {string}, {string}, {string} and {string}", (first, last, address, province, pincode) => { cy.get("#firstNameInput").type(first); cy.get("#lastNameInput").type(last); cy.get("#addressLine1Input").type(address); cy.get("#provinceInput").type(province); cy.get("#postCodeInput").type(pincode); } ); When("I click on Checkout Button", () => { orders.checkout().click(); cy.contains("Continue ").click(); }); When("I click on {string} link", (link) => { cy.contains(link).click(); }); Then("I should see elements in list", () => { cy.xpath("/html/body/div/main/div/div/div/div[2]/div/div[2]") .children("div") .should("have.length", 3); cy.pause(); }); Code changes to check Please ensure that the following guidelines are being followed Spread operator is not used. Used syntax is supported by node 12+. Ex. No ? operator. Checklist Has it been approved by a member of your team? Has it been tested with obfuscation locally? Refer this. Have release notes been added to nodejs.yml? Required automation cases are added in description. PR Validations SCA: Comment RUN_SCA to trigger SCA check. Run Tests: Comment RUN_TESTS to trigger tests. Note: Make sure to pull the latest main branch changes in your branch before running the check.

Open Graph Description: What is this about? Assertions logs and Cucumber/Gherkin step definitions were not showing up in observability log. I used Cypress log:changed event to detect these. I used createdAt and updatedAt ...

X Description: What is this about? Assertions logs and Cucumber/Gherkin step definitions were not showing up in observability log. I used Cypress log:changed event to detect these. I used createdAt and updatedAt ...

Opengraph URL: https://github.com/browserstack/browserstack-cypress-cli/pull/1053

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e7dd5d54-0ad2-6a2f-c8d5-107c4dddb126
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA740:27A224:60A809:82D292:6B0441C0
html-safe-nonceef419b9336363d3fa2dfcebbc3b26db76e025f69a628d8fa093b729aab2dd9df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzQwOjI3QTIyNDo2MEE4MDk6ODJEMjkyOjZCMDQ0MUMwIiwidmlzaXRvcl9pZCI6IjEzNDA2MTUzOTAxNDc1NDc1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac97d6313d8e6d2e7b028b165ef8634a20bf82e07c679f0fbeee82c38d8efb0d5e
hovercard-subject-tagpull_request:3276538174
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
twitter:imagehttps://avatars.githubusercontent.com/u/254613254?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/254613254?s=400&v=4
og:image:altWhat is this about? Assertions logs and Cucumber/Gherkin step definitions were not showing up in observability log. I used Cypress log:changed event to detect these. I used createdAt and updatedAt ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/browserstack/browserstack-cypress-cli git https://github.com/browserstack/browserstack-cypress-cli.git
octolytics-dimension-user_id1119453
octolytics-dimension-user_loginbrowserstack
octolytics-dimension-repository_id242935045
octolytics-dimension-repository_nwobrowserstack/browserstack-cypress-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id242935045
octolytics-dimension-repository_network_root_nwobrowserstack/browserstack-cypress-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1053%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fpull%2F1053%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=browserstack%2Fbrowserstack-cypress-cli
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Reloadhttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
browserstackhttps://github.com/browserstack
browserstack-cypress-clihttps://github.com/browserstack/browserstack-cypress-cli
Codehttps://github.com/browserstack/browserstack-cypress-cli
Issues28 (28)https://github.com/browserstack/browserstack-cypress-cli/issues
Pull requests47 (47)https://github.com/browserstack/browserstack-cypress-cli/pulls
Actionshttps://github.com/browserstack/browserstack-cypress-cli/actions
Projectshttps://github.com/browserstack/browserstack-cypress-cli/projects
Security and quality1 (1)https://github.com/browserstack/browserstack-cypress-cli/security
Insightshttps://github.com/browserstack/browserstack-cypress-cli/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fbrowserstack%2Fbrowserstack-cypress-cli%2Fissues%2Fnew%2Fchoose
prathams-cmdhttps://github.com/prathams-cmd
browserstack:masterhttps://github.com/browserstack/browserstack-cypress-cli/tree/master
prathams-cmd:masterhttps://github.com/prathams-cmd/browserstack-cypress-cli/tree/master
Conversation 5 https://github.com/browserstack/browserstack-cypress-cli/pull/1053
Commits 2 https://github.com/browserstack/browserstack-cypress-cli/pull/1053/commits
Checks 2 https://github.com/browserstack/browserstack-cypress-cli/pull/1053/checks
Files changed https://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Add: Cucumber/Gherkin step detection and assertion logging for test observability https://github.com/browserstack/browserstack-cypress-cli/pull/1053/files#top
Show all changes 2 commits https://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
b7fbcfa Added displayName field for step-definition prathams-cmd Feb 20, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1053/commits/b7fbcfabb31ae0f4b395dda1af5692d9084a5397
4c9799e Merge branch 'browserstack:master' into master prathams-cmd Mar 27, 2026 https://github.com/browserstack/browserstack-cypress-cli/pull/1053/commits/4c9799e730d1837f08bea44fee4808d41edf86bb
Clear filters https://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
Please reload this pagehttps://github.com/browserstack/browserstack-cypress-cli/pull/1053/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.