Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
playwright-playground
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jens Grochtdreis
playwright-playground
Commits
1a4a1b12
Commit
1a4a1b12
authored
1 year ago
by
Jens Grochtdreis
Browse files
Options
Downloads
Patches
Plain Diff
Konfigurationen um extra CSS-Datei erweitert
parent
953ecdeb
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
playwright.config.js
+6
-31
6 additions, 31 deletions
playwright.config.js
screenshot.config.js
+4
-1
4 additions, 1 deletion
screenshot.config.js
screenshots.css
+10
-0
10 additions, 0 deletions
screenshots.css
with
20 additions
and
32 deletions
playwright.config.js
+
6
−
31
View file @
1a4a1b12
...
...
@@ -22,7 +22,10 @@ module.exports = defineConfig({
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout
:
5000
timeout
:
5000
,
toHaveScreenshot
:
{
stylePath
:
'
./screenshots.css
'
}
},
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly
:
!!
process
.
env
.
CI
,
...
...
@@ -36,8 +39,6 @@ module.exports = defineConfig({
use
:
{
/* Maximum time each action such as `click()` can take. Defaults to 0 (no limit). */
actionTimeout
:
0
,
/* Base URL to use in actions like `await page.goto('/')`. */
// baseURL: 'http://localhost:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace
:
'
on-first-retry
'
,
...
...
@@ -58,36 +59,10 @@ module.exports = defineConfig({
{
name
:
'
webkit
'
,
use
:
{
...
devices
[
'
Desktop Safari
'
]
},
},
/* Test against mobile viewports. */
// {
// name: 'Mobile Chrome',
// use: { ...devices['Pixel 5'] },
// },
// {
// name: 'Mobile Safari',
// use: { ...devices['iPhone 12'] },
// },
/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { channel: 'chrome' },
// },
}
],
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
outputDir
:
'
test-results/
'
,
/* Run your local dev server before starting the tests */
// webServer: {
// command: 'npm run start',
// port: 3000,
// },
outputDir
:
'
test-results/
'
});
This diff is collapsed.
Click to expand it.
screenshot.config.js
+
4
−
1
View file @
1a4a1b12
...
...
@@ -19,7 +19,10 @@ module.exports = defineConfig({
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout
:
5000
timeout
:
5000
,
toHaveScreenshot
:
{
stylePath
:
'
./screenshots.css
'
}
},
/* Run tests in files in parallel */
fullyParallel
:
true
,
...
...
This diff is collapsed.
Click to expand it.
screenshots.css
0 → 100644
+
10
−
0
View file @
1a4a1b12
#playerbar
{
display
:
none
!important
;}
#header
{
position
:
relative
!important
;}
#header
.nav-down
,
#header
.nav-up
{
top
:
0
;
animation
:
none
;}
#header-main-navi-header#header-main-navi-header
,
#header-main-navi-header#header-main-navi-header
.search-open
{
position
:
relative
;
left
:
initial
;
transform
:
initial
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment