question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shift helper functions `hasErrorText` and `hasNoErrorText` to central utility testing file

See original GitHub issue

Is your feature request related to a problem? Please describe. Helper functions hasErrorText and hasNoErrorText is being used frequently in test files like AdminAuthActivityTest and it will be used in more files in future.

Describe the solution you’d like We should shift these to a central file rather than including them every time in the test files.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:30 (30 by maintainers)

github_iconTop GitHub Comments

1reaction
anandwana001commented, Jan 1, 2021

Sounds good, let’s block this issue till whole of the migration is done and we can open this issue then. Also, could you please check if we are missing any other screen which needs migration, confirm the list of screens from the migration issue?

0reactions
ayush0402commented, Jul 26, 2021

@prayutsu Can I work on this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Functional Test Refactoring: Move to Helper - Medium
The test project is at my-working-dir/agiletravel-ui-tests/pre-refactoring . Motivation. You use the same functions defined in separate test ...
Read more >
python - Create and import helper functions in tests without ...
How can I import helper functions in test files without creating packages in the test directory? Context. I'd like to create a test...
Read more >
Create Helpers | Best Practices | Recipes | Docs - TestCafe
This pattern allows you to abstract out both page structure and test logic. If you need to extract only the helper functions, however,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found