8
8
using Xunit ;
9
9
using Xunit . Abstractions ;
10
10
11
- namespace PlaywrightSharp . Tests . BrowserContext
11
+ namespace PlaywrightSharp . Tests
12
12
{
13
- ///<playwright-file>browsercontext.spec.js</playwright-file>
14
- ///<playwright-describe>Events.BrowserContext.Page</playwright-describe>
15
13
[ Collection ( TestConstants . TestFixtureBrowserCollectionName ) ]
16
- public class EventsBrowserContextPageTests : PlaywrightSharpBrowserBaseTest
14
+ public class BrowserContectPageEventTests : PlaywrightSharpBrowserBaseTest
17
15
{
18
16
/// <inheritdoc/>
19
- public EventsBrowserContextPageTests ( ITestOutputHelper output ) : base ( output )
17
+ public BrowserContectPageEventTests ( ITestOutputHelper output ) : base ( output )
20
18
{
21
19
}
22
20
23
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should have url" ) ]
21
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should have url" ) ]
24
22
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
25
23
public async Task ShouldHaveUrl ( )
26
24
{
@@ -34,7 +32,7 @@ public async Task ShouldHaveUrl()
34
32
Assert . Equal ( TestConstants . EmptyPage , otherPage . Page . Url ) ;
35
33
}
36
34
37
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should have url after domcontentloaded" ) ]
35
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should have url after domcontentloaded" ) ]
38
36
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
39
37
public async Task ShouldHaveUrlAfterDomcontentloaded ( )
40
38
{
@@ -49,7 +47,7 @@ public async Task ShouldHaveUrlAfterDomcontentloaded()
49
47
Assert . Equal ( TestConstants . EmptyPage , otherPage . Page . Url ) ;
50
48
}
51
49
52
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should have about:blank url with domcontentloaded" ) ]
50
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should have about:blank url with domcontentloaded" ) ]
53
51
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
54
52
public async Task ShouldHaveAboutBlankUrlWithDomcontentloaded ( )
55
53
{
@@ -64,7 +62,7 @@ public async Task ShouldHaveAboutBlankUrlWithDomcontentloaded()
64
62
Assert . Equal ( "about:blank" , otherPage . Page . Url ) ;
65
63
}
66
64
67
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should have about:blank for empty url with domcontentloaded" ) ]
65
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should have about:blank for empty url with domcontentloaded" ) ]
68
66
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
69
67
public async Task ShouldHaveAboutBlankUrlForEmptyUrlWithDomcontentloaded ( )
70
68
{
@@ -79,7 +77,7 @@ public async Task ShouldHaveAboutBlankUrlForEmptyUrlWithDomcontentloaded()
79
77
Assert . Equal ( "about:blank" , otherPage . Page . Url ) ;
80
78
}
81
79
82
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should report when a new page is created and closed" ) ]
80
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should report when a new page is created and closed" ) ]
83
81
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
84
82
public async Task ShouldReportWhenANewPageIsCreatedAndClosed ( )
85
83
{
@@ -111,7 +109,7 @@ public async Task ShouldReportWhenANewPageIsCreatedAndClosed()
111
109
Assert . DoesNotContain ( otherPage , allPages ) ;
112
110
}
113
111
114
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should report initialized pages" ) ]
112
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should report initialized pages" ) ]
115
113
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
116
114
public async Task ShouldReportInitializedPages ( )
117
115
{
@@ -128,7 +126,7 @@ public async Task ShouldReportInitializedPages()
128
126
await evaluateTask ;
129
127
}
130
128
131
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should not crash while redirecting of original request was missed" ) ]
129
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should not crash while redirecting of original request was missed" ) ]
132
130
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
133
131
public async Task ShouldNotCrashWhileRedirectingOfOriginalRequestWasMissed ( )
134
132
{
@@ -154,7 +152,7 @@ await TaskUtils.WhenAll(
154
152
Assert . Equal ( TestConstants . ServerUrl + "/one-style.html" , newPage . Url ) ;
155
153
}
156
154
157
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should have an opener" ) ]
155
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should have an opener" ) ]
158
156
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
159
157
public async Task ShouldHaveAnOpener ( )
160
158
{
@@ -172,7 +170,7 @@ public async Task ShouldHaveAnOpener()
172
170
Assert . Null ( await page . GetOpenerAsync ( ) ) ;
173
171
}
174
172
175
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should fire page lifecycle events" ) ]
173
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should fire page lifecycle events" ) ]
176
174
[ Fact ( Timeout = TestConstants . DefaultTestTimeout ) ]
177
175
public async Task ShouldFirePageLifecycleEvents ( )
178
176
{
@@ -197,7 +195,7 @@ public async Task ShouldFirePageLifecycleEvents()
197
195
events ) ;
198
196
}
199
197
200
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should work with Shift-clicking" ) ]
198
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should work with Shift-clicking" ) ]
201
199
[ SkipBrowserAndPlatformFact ( skipWebkit : true ) ]
202
200
public async Task ShouldWorkWithShiftClicking ( )
203
201
{
@@ -215,7 +213,7 @@ await TaskUtils.WhenAll(
215
213
Assert . Null ( await popupEventTask . Result . Page . GetOpenerAsync ( ) ) ;
216
214
}
217
215
218
- [ PlaywrightTest ( "browsercontext.spec.js" , "Events.BrowserContext.Page ", "should report when a new page is created and closed" ) ]
216
+ [ PlaywrightTest ( "browsercontext-page-event .spec.ts " , "should report when a new page is created and closed" ) ]
219
217
[ SkipBrowserAndPlatformFact ( skipWebkit : true , skipFirefox : true ) ]
220
218
public async Task ShouldWorkWithCtrlClicking ( )
221
219
{
0 commit comments