Skip to content

Commit

Permalink
Fix acceptance test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Skiepko committed May 9, 2017
1 parent aa9ff75 commit 6d3a485
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions acceptance_tests/tests/test_all.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ def assert_no_resources_info(selenium):


def add_resource(selenium, name):
selenium.find_element_by_id('addResourceButton').click()
time.sleep(1)
resource_name = selenium.find_element_by_id('new_resource_name')
resource_name.clear()
resource_name.send_keys(name)
Expand Down
4 changes: 3 additions & 1 deletion dila/frontend/flask/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{% extends "layout.html" %}
{% block homepage_link_class %}active{% endblock %}
{% block body %}
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#addResource">Add new resource</button>
<button id="addResourceButton" type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#addResource">
Add new resource
</button>
<div id="addResource" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
Expand Down

0 comments on commit 6d3a485

Please sign in to comment.