Skip to content

Commit

Permalink
ssl bypass for local testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorazil committed Oct 24, 2023
1 parent ccec1fe commit 22f0e36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ jobs:
path: .
- name: Extract workdir
run: tar -xzpf workdir.tar.gz
- name: Append to .env file
run: echo -e "\nGITHUB_CI=true" >> .env.test
- name: Start selenium container
run: docker compose -f docker/docker-compose.yml up -d selenium nginx
- run: mv app/config/config.ci.local.neon app/config/config.local.neon
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@
<exec command="bin/console migrations:migrate --no-interaction" passthru="true"/>
<exec command="bin/console orm:generate-proxies --no-interaction" passthru="true"/>

<exec command="vendor/bin/codecept run acceptance" passthru="true" checkreturn="true"/>
<exec command="vendor/bin/codecept run acceptance -vv" passthru="true" checkreturn="true"/>
</target>

<target name="tests">
Expand Down
4 changes: 3 additions & 1 deletion tests/_support/AcceptanceTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ public function login(string $role) : void
$I->fillField('(//input)[9]', self::LOGIN);
$I->fillField('(//input)[10]', self::PASSWORD);
$I->click('//button');
// $I->click('Send anyway'); // bypass ssl redirect
if(!getenv('GITHUB_CI')){
$I->click('Send anyway'); // bypass ssl redirect
}
$I->waitForText('Seznam akcí');

$roleButtonSelector = "//button[contains(@class, 'ui--current-role')]";
Expand Down

0 comments on commit 22f0e36

Please sign in to comment.