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
# file: features/acceptance/functionality/progress_bar_functionality.feature | |
Scenario Outline: Progress bar status if block is answered | |
Given I have visited a typeform with many <block type> blocks | |
When I commit the block | |
Then the progress bar should increase | |
Examples: | |
| block type | | |
| short text | | |
| multiple choice | |
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
# file: features/step_definitions/test_step.rb | |
... | |
When(/^I (?:commit|have committed) the block$/) do | |
@current_progress_bar = | |
on_page(@block_type.to_page_object).commit_answer | |
end |
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
# file: features/support/pages/short_text_block.rb | |
module InputTextBlock | |
include PageObject | |
text_field(:text_input, css: '.is-focused input') | |
button(:ok_button, css: '.is-focused .stkv-qa-block-btn.is-visible .stkv-qa-block-btn__button') | |
def commit_answer | |
self.fill_answer |
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
#file: features/support/pages/multiple_choice_block.rb | |
module MultipleChoiceBlock | |
include PageObject | |
divs(:choice_list, css: '.is-focused .stkv-qa-choice') | |
sections(:block_list, class: 'stkv-qa-block') | |
def commit_answer | |
self.choice_list_elements[selected_choice_id].click | |
end |
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
#!/bin/bash | |
# wait-for-grid.sh | |
set -e | |
cmd="$@" | |
while ! curl -sSL "http://hub:4444/wd/hub/status" 2>&1 \ | |
| jq -r '.value.ready' 2>&1 | grep "true" >/dev/null; do | |
echo 'Waiting for the Grid' |
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
git remote rename origin upstream | |
git add remote origin git@github.com:user/fork.git |
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
require 'rubygems' | |
require 'selenium-webdriver' | |
require 'page-object/page_factory' | |
require_relative 'pages/duckduckgo_page' | |
World(PageObject::PageFactory) | |
browser = Selenium::WebDriver.for :chrome | |
# browser.get "http://duckduckgo.com" | |
my_page_object = DuckduckgoSearchPage.new(browser) |
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
/** | |
* Selects an option in a Chosen Selector based on its label | |
* | |
* @return void | |
*/ | |
public function selectOptionInSelectize($label, $option) | |
{ | |
$I = $this; | |
$I->waitForJS("return jQuery(\"label:contains('$label')\");"); | |
$selectID = $I->executeJS("return jQuery(\"label:contains('$label')\").attr(\"for\");"); |
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
# Just run this: | |
defaults write com.apple.finder AppleShowAllFiles TRUE |
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
# IMAGENES | |
docker image ls | |
# PARAR CONTAINERs | |
docker-compose down | |
docker stop $(docker ps -q) | |
docker kill -f CONTAINER_ID | |
# LIMPIAR IMAGENES Y CONTENEDORES ANTIGUOS | |
docker system prune |