Skip to content

Commit

Permalink
Update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Apr 15, 2024
1 parent 43f3cea commit 0a51368
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/environments/NewEnvironmentDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ function _NewEnvironmentDialog(props: INewEnvironmentDialogProps) {
path: ENV_PREFIX,
data
});
if (response?.uid !== undefined) {
if (response?.status === 'ok') {
window.location.reload();
} else {
handleClose();
Expand Down
2 changes: 1 addition & 1 deletion tljh_repo2docker/binderhub_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def post(self):
)
self.set_status(200)
self.set_header("content-type", "application/json")
self.finish(json.dumps({"uid": str(uid)}))
self.finish(json.dumps({"uid": str(uid), "status": "ok"}))

log = ""
async with db_context() as db:
Expand Down
Binary file modified ui-tests/binderhub_snapshots/ui.test.ts/environment-dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui-tests/binderhub_snapshots/ui.test.ts/running-servers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified ui-tests/binderhub_snapshots/ui.test.ts/server-remove-confirm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions ui-tests/playwright.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ module.exports = {
use: {
baseURL: 'http://localhost:8000',
video: 'retain-on-failure',
trace: 'on-first-retry'
trace: 'retain-on-failure'
},
retries: 1,
retries: 0,
expect: {
toMatchSnapshot: {
maxDiffPixelRatio: 0.001
Expand Down
2 changes: 1 addition & 1 deletion ui-tests/tests/ui.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ test.describe('tljh_repo2docker UI Tests', () => {
name: 'Create Server'
});
await createServer.click();
await expect(createServer).toHaveCount(0);
await expect(createServer).toHaveCount(0, { timeout: 20000 });
await page.waitForURL('**/servers');
await page.waitForTimeout(1000);

Expand Down

0 comments on commit 0a51368

Please sign in to comment.