← Back to Discord Forum

Run test after all tests completed running in the test file

Hi All, I have a scenario where i have many tests in test file and i would like ti run specific test after all the test completed running. how can i do that? i tried to use test.AfterAll and i put the test inside it BUT it failed with: Error: Playwright Test did not expect test() to be called here. Most common reasons include:

  • You are calling test() in a configuration file.
  • You are calling test() in a file that is imported by the configuration file. can anyone help me? (NOTE: i would to run my tests parallely and at the end the specific test )

This thread is trying to answer question "How can I run a specific test after all other tests in a test file have completed running?"

0 replies
AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email luc@ray.run.