Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F995208
index.test.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
index.test.ts
View Options
import
{
withProdApp
}
from
"../test_utils/with-prod-app.js"
;
import
{
VERY_LONG_TEST_TIMEOUT
,
webhintURL
}
from
"../test_utils/webhint.js"
;
import
{
HomeURL
}
from
"./urls.js"
;
import
{
getBrowser
}
from
"../test_utils/browser-creator.js"
;
import
type
{
Browser
,
BrowserContext
,
Page
}
from
"@playwright/test"
;
describe
(
"Home webhint"
,
()
=>
{
it
(
"doesn't crash"
,
async
function
()
{
return
withProdApp
(
async
({
base_url
,
rest_api
})
=>
{
await
rest_api
.
get
(
HomeURL
);
await
webhintURL
(
base_url
+
HomeURL
);
// alternatively you can use webhintHTML for faster but less precise scans
// or for scanning responses of requests that use some form of authorization:
// const response = await rest_api.get(HomeURL);
// await webhintHTML(response);
});
}).
timeout
(
VERY_LONG_TEST_TIMEOUT
);
});
describe
(
"Home"
,
()
=>
{
let
page
:
Page
;
let
browser
:
Browser
;
let
context
:
BrowserContext
;
beforeEach
(
async
()
=>
{
browser
=
await
getBrowser
();
context
=
await
browser
.
newContext
();
page
=
await
context
.
newPage
();
});
afterEach
(
async
()
=>
{
await
context
.
close
();
});
it
(
"works as expected"
,
async
function
()
{
return
withProdApp
(
async
({
base_url
})
=>
{
await
page
.
goto
(
base_url
+
HomeURL
);
});
}).
timeout
(
VERY_LONG_TEST_TIMEOUT
);
});
File Metadata
Details
Attached
Mime Type
text/x-java
Expires
Mon, Dec 23, 00:54 (4 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
556674
Default Alt Text
index.test.ts (1 KB)
Attached To
Mode
rPLAY Sealious playground
Attached
Detach File
Event Timeline
Log In to Comment