-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3467259
commit bce691a
Showing
7 changed files
with
1,087 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "tljh_repo2docker-ui-tests", | ||
"version": "1.0.0", | ||
"description": "tljh_repo2docker UI Tests", | ||
"private": true, | ||
"scripts": { | ||
"test": "npx playwright test --workers 1", | ||
"test:update": "npx playwright test --update-snapshots", | ||
"test:debug": "PWDEBUG=1 npx playwright test --workers 1" | ||
}, | ||
"license": "BSD-3-Clause", | ||
"dependencies": { | ||
"@playwright/test": "^1.31.0", | ||
"rimraf": "^4.1.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
module.exports = { | ||
timeout: 120000, | ||
reporter: [[process.env.CI ? "dot" : "list"], ["html"]], | ||
use: { | ||
baseURL: "http://localhost:8000", | ||
video: "retain-on-failure", | ||
}, | ||
retries: 0, | ||
expect: { | ||
toMatchSnapshot: { | ||
maxDiffPixelRatio: 0.02, | ||
}, | ||
}, | ||
webServer: [ | ||
{ | ||
command: "yarn start", | ||
port: 8000, | ||
timeout: 120 * 1000, | ||
reuseExistingServer: false, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { expect, test } from '@playwright/test'; | ||
|
||
test.describe('tljh_repo2docker UI Tests', () => { | ||
test.beforeEach(({ page }) => { | ||
page.setDefaultTimeout(60000); | ||
}); | ||
|
||
test.afterEach(async ({ page }) => { | ||
await page.close({ runBeforeUnload: true }); | ||
}); | ||
|
||
test('Render Login', async ({ page }) => { | ||
await page.goto('hub/login'); | ||
await page.getByText('Sign in'); | ||
expect(await page.screenshot()).toMatchSnapshot(); | ||
}); | ||
}); |
Binary file added
BIN
+31.8 KB
...s/tests/ui.test.ts-snapshots/tljh-repo2docker-UI-Tests-Render-Login-1-linux.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.