Skip to content

Commit cedd0dc

Browse files
committed
javascript example - phpbrowser vs selenium
1 parent d686716 commit cedd0dc

File tree

12 files changed

+205
-144
lines changed

12 files changed

+205
-144
lines changed

.idea/workspace.xml

Lines changed: 154 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
jQuery(document).ready(function(){
2+
3+
console.log('loaded modal');
4+
5+
$('#modalButton').click(function() {
6+
$.ajax({
7+
url: '/popup.html',
8+
dataType: 'html',
9+
type: 'GET',
10+
success: function(data) {
11+
if (data) {
12+
var $modal = $(data);
13+
$('body').append($modal);
14+
$modal.filter('.modal').modal();
15+
} else {
16+
alert(data.dialog);
17+
}
18+
}
19+
});
20+
21+
});
22+
});

src/A6/CodeceptIsAwesomeBundle/Resources/views/index.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
{% block javascripts %}
44
<script type="text/javascript" src="/bundles/a6codeceptisawesome/js/showFlash.js"></script>
5+
<script type="text/javascript" src="/bundles/a6codeceptisawesome/js/showModal.js"></script>
56
{% endblock %}
67

78
{% block body %}
@@ -23,4 +24,7 @@
2324

2425
</main>
2526

27+
<a href="#" id="modalButton">Click me</a>
28+
29+
2630
{% endblock %}

tests/_output/FTestCept.fail.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/_output/FTestCept.fail.png

-38.5 KB
Binary file not shown.

tests/_output/Index0001_TestsWeSeeHelloCept.fail.html

Lines changed: 0 additions & 26 deletions
This file was deleted.

tests/_output/hiCest.tryToTest.fail.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/_output/report.json

Lines changed: 0 additions & 41 deletions
This file was deleted.

tests/_output/report.tap.log

Lines changed: 0 additions & 7 deletions
This file was deleted.

tests/acceptance.suite.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
class_name: AcceptanceTester
88
modules:
99
enabled:
10-
# - WebDriver
11-
- PhpBrowser
10+
- WebDriver
11+
# - PhpBrowser
1212
- AcceptanceHelper
1313
config:
14-
PhpBrowser:
15-
url: 'http://codeception_is_awesome.dev/app_codecept.php/'
16-
# WebDriver:
17-
# browser: firefox
18-
# host: 192.168.1.127
14+
# PhpBrowser:
1915
# url: 'http://codeception_is_awesome.dev/app_codecept.php/'
16+
WebDriver:
17+
browser: firefox
18+
host: 192.168.1.127
19+
url: 'http://codeception_is_awesome.dev/app_codecept.php/'

0 commit comments

Comments
 (0)