Skip to content

Commit

Permalink
init behat test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulandrieux committed Apr 25, 2017
1 parent 3b9ba85 commit 9165752
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor/*
/composer.lock
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "victoire-test-suite"]
path = victoire-test-suite
url = git@github.com:Victoire/test-suite.git
5 changes: 5 additions & 0 deletions Tests/Bundles.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

$victoireTestBundles = [
new Victoire\Widget\GmapBundle\VictoireWidgetGmapBundle()
];
13 changes: 13 additions & 0 deletions Tests/Features/create.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@mink:selenium2 @alice(Page) @reset-schema
Feature: Create a Date widget

Background:
Given I maximize the window
And I am on homepage

Scenario: I create a new Gmap widget
When I switch to "layout" mode
Then I should see "New content"
When I select "Google Maps" from the "1" select of "main_content" slot
Then I should see "Widget (Google Maps)"
And I should see "1" quantum
2 changes: 2 additions & 0 deletions Tests/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
parameters:
victoire_widget_gmap.api_key: abc-xxx
31 changes: 31 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
machine:
timezone:
Europe/Paris
hosts:
fr.victoire.io: 127.0.0.1
en.victoire.io: 127.0.0.1
services:
- redis
php:
version: 7.1.0

checkout:
post:
- git submodule sync
- git submodule update --init

dependencies:
override:
- bash victoire-test-suite/dependencies.sh friendsofvictoire/gmap-widget
cache_directories:
- ~/.composer/cache

test:
override:
- bash victoire-test-suite/circle.sh friendsofvictoire/gmap-widget:
parallel: true
- bash victoire-test-suite/test.sh friendsofvictoire/gmap-widget

general:
artifacts:
- "fails"
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"require": {
"php": ">=5.5.9",
"symfony/framework-bundle": "~2.8|~3.0",
"victoire/victoire": ">=2.0.0"
"victoire/victoire": "~2.3|~3.0"
},
"autoload": {
"psr-0": {
Expand Down
1 change: 1 addition & 0 deletions victoire-test-suite
Submodule victoire-test-suite added at 2f3e4b

0 comments on commit 9165752

Please sign in to comment.