Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit 734ce4c

Browse files
committed
Merge branch 'release/1.0.0' into production
2 parents ea1c4cd + 18c0dcb commit 734ce4c

21 files changed

+216
-40
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,9 @@ matrix:
6868
- env:
6969
- WebDriver_Platform="macOS 10.13"
7070
- WebDriver_BrowserName="Safari"
71-
- WebDriver_BrowserVersion="11.0"
71+
- WebDriver_BrowserVersion="11.1"
7272
- env:
73+
- WebDriver_Platform="macOS 10.13"
7374
- WebDriver_BrowserName="Safari"
7475
- WebDriver_BrowserVersion="latest"
7576

CSF.Screenplay.Selenium.BrowserFlags.Tests/CSF.Screenplay.Selenium.BrowserFlags.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>CSF.Screenplay.Selenium.Tests</RootNamespace>
99
<AssemblyName>CSF.Screenplay.Selenium.BrowserFlags.Tests</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.5.0-beta</ReleaseVersion>
11+
<ReleaseVersion>1.0.0</ReleaseVersion>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1414
<DebugSymbols>true</DebugSymbols>

CSF.Screenplay.Selenium.BrowserFlags/CSF.Screenplay.Selenium.BrowserFlags.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>CSF.Screenplay.Selenium</RootNamespace>
99
<AssemblyName>CSF.Screenplay.Selenium.BrowserFlags</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.5.0-beta</ReleaseVersion>
11+
<ReleaseVersion>1.0.0</ReleaseVersion>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1414
<DebugSymbols>true</DebugSymbols>

CSF.Screenplay.Selenium.BrowserFlags/CSF.Screenplay.Selenium.BrowserFlags.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<package>
33
<metadata>
44
<id>CSF.Screenplay.Selenium.BrowserFlags</id>
5-
<version>0.5.0-beta</version>
5+
<version>1.0.0</version>
66
<title>CSF.Screenplay.Selenium.BrowserFlags</title>
77
<authors>CSF Software Ltd</authors>
8-
<licenseUrl>https://opensource.org/licenses/MIT</licenseUrl>
8+
<license type="expression">MIT</license>
99
<projectUrl>https://github.com/csf-dev/CSF.Screenplay.Selenium</projectUrl>
1010
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1111
<description>An assembly containing 'browser flags definitions' for CSF.Screenplay.Selenium. This indicates the quirks and behaviours of various popular web browsers which are compatible with Selenium WebDriver.</description>

CSF.Screenplay.Selenium.BrowserFlags/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1818
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1919

20-
[assembly: AssemblyVersion("0.5.0.0")]
20+
[assembly: AssemblyVersion("1.0.0.0")]
2121

2222
// The following attributes are used to specify the signing key for the assembly,
2323
// if desired. See the Mono documentation for more information about signing.

CSF.Screenplay.Selenium.JavaScriptWorkarounds/CSF.Screenplay.Selenium.JavaScriptWorkarounds.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>CSF.Screenplay.Selenium</RootNamespace>
99
<AssemblyName>CSF.Screenplay.Selenium.JavaScriptWorkarounds</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.5.0-beta</ReleaseVersion>
11+
<ReleaseVersion>1.0.0</ReleaseVersion>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1414
<DebugSymbols>true</DebugSymbols>

CSF.Screenplay.Selenium.JavaScriptWorkarounds/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// The form "{Major}.{Minor}.*" will automatically update the build and revision,
1818
// and "{Major}.{Minor}.{Build}.*" will update just the revision.
1919

20-
[assembly: AssemblyVersion("0.5.0.0")]
20+
[assembly: AssemblyVersion("1.0.0.0")]
2121

2222
// The following attributes are used to specify the signing key for the assembly,
2323
// if desired. See the Mono documentation for more information about signing.

CSF.Screenplay.Selenium.Tests/CSF.Screenplay.Selenium.Tests.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<RootNamespace>CSF.Screenplay.Selenium.Tests</RootNamespace>
99
<AssemblyName>CSF.Screenplay.Selenium.Tests</AssemblyName>
1010
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
11-
<ReleaseVersion>0.5.0-beta</ReleaseVersion>
11+
<ReleaseVersion>1.0.0</ReleaseVersion>
1212
</PropertyGroup>
1313
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1414
<DebugSymbols>true</DebugSymbols>

CSF.Screenplay.Selenium.Tests/Waits/WaitUntilVisibleTests.cs

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,38 @@ public void Wait_UntilVisible_raises_exception_if_we_dont_wait_long_enough(ICast
4343
When(joe).AttemptsTo(Wait.ForAtMost(2).Seconds().OrUntil(PageThree.DelayedLinkOne).IsVisible());
4444
});
4545
}
46+
47+
[Test,Screenplay]
48+
[Description("If the actor's default wait time is not long enough for the element to appear then an exception is raised.")]
49+
public void Wait_UntilVisible_raises_exception_if_actors_default_wait_time_is_not_long_enough(ICast cast, BrowseTheWeb browseTheWeb)
50+
{
51+
var joe = cast.Get("Joe");
52+
joe.IsAbleTo(browseTheWeb);
53+
joe.IsAbleTo(ChooseADefaultWaitTime.Of(TimeSpan.FromSeconds(2)));
54+
55+
Given(joe).WasAbleTo(OpenTheirBrowserOn.ThePage<PageThree>());
56+
57+
When(joe).AttemptsTo(Click.On(PageThree.DelayedButtonOne));
58+
59+
Assert.Throws<GivenUpWaitingException>(() => {
60+
When(joe).AttemptsTo(Wait.Until(PageThree.DelayedLinkOne).IsVisible());
61+
});
62+
}
63+
64+
[Test,Screenplay]
65+
[Description("If the actor's default wait time is sufficient for the element to appear then no exception is raised.")]
66+
public void Wait_UntilVisible_does_not_raise_exception_if_actors_default_wait_time_is_long_enough(ICast cast, BrowseTheWeb browseTheWeb)
67+
{
68+
var joe = cast.Get("Joe");
69+
joe.IsAbleTo(browseTheWeb);
70+
joe.IsAbleTo(ChooseADefaultWaitTime.Of(TimeSpan.FromSeconds(5)));
71+
72+
Given(joe).WasAbleTo(OpenTheirBrowserOn.ThePage<PageThree>());
73+
74+
When(joe).AttemptsTo(Click.On(PageThree.DelayedButtonOne));
75+
When(joe).AttemptsTo(Wait.Until(PageThree.DelayedLinkOne).IsVisible());
76+
77+
Then(joe).ShouldSee(TheText.Of(PageThree.DelayedLinkOne)).Should().Be("This link appears!");
78+
}
4679
}
4780
}

CSF.Screenplay.Selenium.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ Global
7272
{87454F03-FBB3-4506-9055-551297445891} = {ED939EED-BD26-4C3C-9089-48E04DD01CD8}
7373
EndGlobalSection
7474
GlobalSection(MonoDevelopProperties) = preSolution
75-
version = 0.5.0-beta
75+
version = 1.0.0
7676
EndGlobalSection
7777
EndGlobal

0 commit comments

Comments
 (0)