Skip to content

Commit

Permalink
Merge branch 'topic/external-testing'
Browse files Browse the repository at this point in the history
  • Loading branch information
minusnine committed Aug 6, 2019
2 parents 004f2b0 + b41ca4d commit 1131f5e
Show file tree
Hide file tree
Showing 8 changed files with 1,781 additions and 1,855 deletions.
1,701 changes: 1,701 additions & 0 deletions internal/seleniumtest/seleniumtest.go

Large diffs are not rendered by default.

1,915 changes: 68 additions & 1,847 deletions remote_test.go

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions sauce_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package selenium
package selenium_test

import (
"flag"
Expand All @@ -7,6 +7,8 @@ import (
"testing"

"github.com/blang/semver"
"github.com/tebeka/selenium"
"github.com/tebeka/selenium/internal/seleniumtest"
"github.com/tebeka/selenium/sauce"
)

Expand All @@ -22,7 +24,7 @@ func TestSauce(t *testing.T) {
t.Skip("Skipping Sauce tests. Enable via --experimental_sauce_tests")
}
if testing.Verbose() {
SetDebug(true)
selenium.SetDebug(true)
}
if *sauceUserName == "" {
t.Fatalf("--sauce_user_name is required.")
Expand Down Expand Up @@ -69,17 +71,19 @@ func TestSauce(t *testing.T) {
browser, version := strings.ToLower(browser), strings.ToLower(tc.version)

t.Run(name, func(t *testing.T) {
runFirefoxSubTests(t, config{
browser: browser,
seleniumVersion: semver.MustParse(tc.selenium),
sauce: &sauce.Capabilities{
c := seleniumtest.Config{
Browser: browser,
SeleniumVersion: semver.MustParse(tc.selenium),
Sauce: &sauce.Capabilities{
Browser: browser,
Version: version,
Platform: tc.platform,
SeleniumVersion: tc.selenium,
},
addr: addr,
})
Addr: addr,
}
seleniumtest.RunCommonTests(t, c)
seleniumtest.RunFirefoxTests(t, c)
})
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1131f5e

Please sign in to comment.