Skip to content

Commit

Permalink
Merge pull request #9 from robacarp/fix_broken_garnet
Browse files Browse the repository at this point in the history
Fix broken garnet
  • Loading branch information
robacarp committed Feb 14, 2018
2 parents 71705f5 + 1fc06e3 commit a59cb03
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -21,6 +21,10 @@ dependencies:
github: amberframework/garnet-spec
```

### Installing java

MacOS: `brew cask install java` then `java --version` to verify installation.

## Usage

Before running your tests ensure you have installed the chromedriver in your system path
Expand Down
6 changes: 2 additions & 4 deletions spec/system/test_spec.cr
Expand Up @@ -5,18 +5,16 @@ class SomeFeature < GarnetSpec::System::Test
scenario "user visits amber framework and sees getting started button" do
visit "http://www.amberframework.org"

timeout 1000
click_on(:css, "header a.btn.btn-primary")
wait 2000
element(:tag_name, "body").text.should contain "Introduction"
element(:tag_name, "body").text.should contain "Fork the project"
end

scenario "user visits amberframwork homepage and sees logo" do
visit "http://www.amberframework.org"

wait 2000
element(:class_name, "img-amber-logo").attribute("src").should match(
%r(https://www.amberframework.org/assets/img/amber-logo-t-bg.png)
%r(https://amberframework.org/assets/img/amber-logo-t-bg.png)
)
end
end
Expand Down
2 changes: 1 addition & 1 deletion src/garnet_spec/selenium_server.cr
Expand Up @@ -7,7 +7,7 @@ module GarnetSpec

# Boots Selenium Standalone Server
def self.boot
Process.new(command: "selenium-server", output: true, error: true)
Process.new(command: "selenium-server", output: Process::Redirect::Inherit, error: Process::Redirect::Inherit)
end
end
end

0 comments on commit a59cb03

Please sign in to comment.