contentful-management.js icon indicating copy to clipboard operation
contentful-management.js copied to clipboard

fix(tests): add wait for environment creation function to prevent flaky tests []

Open luizfonseca opened this issue 3 years ago • 2 comments
trafficstars

Summary

  • adds waitForEnvironmentToBeReady to most tests that are using createEnvironment

Description

Motivation and Context

Checklist (check all before merging)

  • [ ] Both unit and integration tests are passing
  • [ ] There are no breaking changes
  • [ ] Changes are reflected in the documentation

When adding a new method:

  • [ ] The new method is exported through the default and plain CMA client
  • [ ] All new public types are exported from ./lib/export-types.ts
  • [ ] Added a unit test for the new method
  • [ ] Added an integration test for the new method
  • [ ] The new method is added to the documentation

luizfonseca avatar Apr 25 '22 09:04 luizfonseca

@luizfonseca could you try using the next major test utils package? Maybe it will fix it?

Spring3 avatar Apr 27 '22 09:04 Spring3

@luizfonseca should we close it? looks like there's not time to follow up?

Spring3 avatar Jul 13 '22 12:07 Spring3