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

Test argument "title" should be a string. Received type "object" #276

Open
telmougy opened this issue Oct 13, 2024 · 0 comments
Open

Test argument "title" should be a string. Received type "object" #276

telmougy opened this issue Oct 13, 2024 · 0 comments

Comments

@telmougy
Copy link

telmougy commented Oct 13, 2024

cypress version = 13.6.0
cypress-tags version =1.1.2
OS = windows
i am trying to run sanity tests with tag sanity with this command

npx cypress run --env CYPRESS_INCLUDE_TAGS=sanity
  it(['sanity'],'sanity - Verify that page title is the search keyword - @sanity',() => {
    homePage.searchByKeyword(englishSearchKeyword);
    cy.title().should('eq', `${englishSearchKeyword} | Tradeling`);
  });

but I get this error

  TypeError: The following error originated from your test code, not from Cypress.

  > Test argument "title" should be a string. Received type "object"

When Cypress detects uncaught errors originating from your test code it will automatically fail the current test.

Cypress could not associate this error to any specific test.
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

No branches or pull requests

1 participant