Skip to content

Commit

Permalink
Fix install
Browse files Browse the repository at this point in the history
  • Loading branch information
anaelChardan committed Jan 24, 2020
1 parent aca5c4b commit 82560ac
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 4 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ application/node_modules: application/package.json
.PHONY: app-dev
app-dev:
APP_DEV=dev $(MAKE) application/vendor
APP_DEV=dev $(MAKE) application/node_modules
APP_ENV=dev $(MAKE) up
APP_ENV=dev $(MAKE) cache

Expand All @@ -73,7 +74,7 @@ app-in-memory:
APP_ENV=in_memory $(MAKE) cache

.PHONY: install
install: application/vendor
install: application/vendor application/node_modules

.PHONY: db-schema
db-schema:
Expand Down
25 changes: 25 additions & 0 deletions application/config/packages/dev/messenger.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
framework:
messenger:
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
# failure_transport: failed

transports:
# https://symfony.com/doc/current/messenger.html#transport-configuration
# async: '%env(MESSENGER_TRANSPORT_DSN)%'
# failed: 'doctrine://default?queue_name=failed'
sync: 'sync://'

default_bus: command.bus
buses:
command.bus:
middleware:
- 'Todo\ShareSpace\Tool\MessageBus\Command\IdentifierMiddleware'
- validation
- doctrine_transaction
query.bus:
middleware:
- validation
event.bus:
default_middleware: allow_no_handlers
middleware:
- validation
14 changes: 11 additions & 3 deletions application/tests/Todo/EndToEnd/Behat/Front/TodoContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,18 @@ public function iCreateATodoListNamed(string $todoListNamed): void
*/
public function shouldHaveTask(string $todoListName, int $numberOfTasks)
{
$todoList = $this->findTodoListNamed($todoListName);
$text = $todoList->findElement(WebDriverBy::className('todo-list-count'))->getText();
$this->browserHelper->client()->wait(10)->until(function () use ($todoListName, $numberOfTasks) {
$todoList = $this->findTodoListNamed($todoListName);

$text = $todoList->findElement(WebDriverBy::className('todo-list-count'))->getText();

Assert::eq($text, '('.$numberOfTasks.')');
try {
Assert::eq($text, '(' . $numberOfTasks . ')');
return true;
} catch (\Exception $exception) {
return false;
}
});
}

/**
Expand Down

0 comments on commit 82560ac

Please sign in to comment.