Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
fix(tests): wait for test project to be created
Browse files Browse the repository at this point in the history
We ensure that cypress waits for a test project to be created before it
continues. Otherwise tests may fail.

Signed-off-by: Thomas Scholtes <thomas@monadic.xyz>
  • Loading branch information
Thomas Scholtes committed Apr 9, 2021
1 parent a7c4174 commit 4b93e75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cypress/support/commands.ts
Expand Up @@ -65,8 +65,8 @@ export const createProjectWithFixture = (
defaultBranch = "master",
fakePeers: string[] = []
): void => {
cy.then(() => {
proxyClient.control.projectCreate({
cy.then(async () => {
await proxyClient.control.projectCreate({
name,
description,
defaultBranch,
Expand Down

0 comments on commit 4b93e75

Please sign in to comment.