This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Examples bellow assume the following stack: | |
# Ruby 1.9.3 or superior | |
# Capybara most recent version | |
# RSpec 2.14 | |
# Selenium-webdriver most recent version | |
# The scenario: | |
# * Automate the server creation with Standard Flavor | |
# * Automate the server creation with Performance 1 Flavor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. var script=document.createElement('script'); | |
2. script.setAttribute("src", "http://code.jquery.com/jquery-latest.min.js"); | |
3. var head = document.getElementsByTagName('head')[0]; | |
4. head.appendChild(script); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Here is an example of procedures that should be avoided inside the page objects | |
it "can create the server" do | |
server = DataSetup::Servers::Server.new(server_name) | |
server_details_view = server_list_view.create_server(server) | |
# ^ this create_server method above is hiding the flow of the test inside the page object | |
server_details_view.info_section.wait_to_load |
NewerOlder