Skip to content

Commit cd3f3cb

Browse files
committed
Fix new upstream tests
1 parent 96683b0 commit cd3f3cb

File tree

6 files changed

+46
-18
lines changed

6 files changed

+46
-18
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"electron-window-state": "^5.0.3",
4242
"event-kit": "^2.0.0",
4343
"focus-trap-react": "^8.1.0",
44-
"fs-admin-forked": "^0.23.0",
44+
"fs-admin": "^0.19.0",
4545
"fuzzaldrin-plus": "^0.6.0",
4646
"keytar": "^7.8.0",
4747
"lodash": "^4.18.1",

app/src/lib/feature-flag.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,13 @@ export const enableCopilotSdkCommitMessageGeneration = (account: Account) => {
109109
}
110110

111111
export function enableAccessibleListToolTips(): boolean {
112+
// In test environments the hover-based tooltips must remain active so that
113+
// tooltip content tests can trigger and verify them. The accessible list
114+
// tooltips (keyboard/focus-based) are a beta feature that replaces hover
115+
// tooltips, but tests rely on the hover behavior.
116+
if (process.env.TEST_ENV === '1') {
117+
return false
118+
}
112119
return enableBetaFeatures()
113120
}
114121

app/src/ui/lib/install-cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as Path from 'path'
22

3-
import * as fsAdmin from 'fs-admin-forked'
3+
import * as fsAdmin from 'fs-admin'
44
import { mkdir, readlink, symlink, unlink } from 'fs/promises'
55

66
/** The path for the installed command line tool. */

app/test/unit/ui/repository-list-item-test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ describe('RepositoryListItem', () => {
4949
const repository = createRepository()
5050
const view = render(
5151
<RepositoryListItem
52-
title={repository.name}
52+
title={repository.alias ?? repository.name}
5353
repository={repository}
5454
needsDisambiguation={false}
5555
matches={noMatches}
@@ -78,7 +78,7 @@ describe('RepositoryListItem', () => {
7878
const repository = createRepository('desktop-app')
7979
const view = render(
8080
<RepositoryListItem
81-
title={repository.name}
81+
title={repository.alias ?? repository.name}
8282
repository={repository}
8383
needsDisambiguation={true}
8484
matches={noMatches}
@@ -102,7 +102,7 @@ describe('RepositoryListItem', () => {
102102
const repository = createRepository('desktop-app')
103103
const view = render(
104104
<RepositoryListItem
105-
title={repository.name}
105+
title={repository.alias ?? repository.name}
106106
repository={repository}
107107
needsDisambiguation={true}
108108
matches={noMatches}

app/test/unit/ui/small-action-and-dialog-surfaces-test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ describe('small action and dialog surfaces', () => {
7474
const okButton = screen.getByRole('button', { name: 'Ok', hidden: true })
7575

7676
assert.ok(title)
77-
assert.ok(screen.getByText('/usr/local/bin/github'))
77+
assert.ok(screen.getByText('/usr/local/bin/github-desktop-plus-cli'))
7878

7979
fireEvent.click(okButton)
8080

app/yarn.lock

Lines changed: 33 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -756,13 +756,13 @@ for-each@^0.3.5:
756756
dependencies:
757757
is-callable "^1.2.7"
758758

759-
fs-admin-forked@^0.23.0:
760-
version "0.23.0"
761-
resolved "https://registry.yarnpkg.com/fs-admin-forked/-/fs-admin-forked-0.23.0.tgz#4fcdf64a2d7758a52c67bbc87b1ff7a592ff6803"
762-
integrity sha512-1sFLqKsArQPtzEcMys8vsxDod0hVi5Q2Vsev2h+UZ7vXTQz++mUe01uHkS+r9Yj0zjLT0Dwefv3c5a1dCAW7xg==
759+
fs-admin@^0.19.0:
760+
version "0.19.0"
761+
resolved "https://registry.yarnpkg.com/fs-admin/-/fs-admin-0.19.0.tgz#c2b077b21607ca1982bf9bc8c3fc096be7a1186e"
762+
integrity sha512-GtJUlSqX95Daw1zlH9PtqMIpr+yQqUnCRKxupuwdlPGy4ds+ICNT3apyQlnT1yXiXvAdnTK06ag/4jMS/jzhXQ==
763763
dependencies:
764-
node-addon-api "^8.3.0"
765-
prebuild-install "^7.1.3"
764+
node-addon-api "^3.1.0"
765+
prebuild-install "^6.0.0"
766766

767767
fs-constants@^1.0.0:
768768
version "1.0.0"
@@ -1263,6 +1263,13 @@ nice-try@^1.0.4:
12631263
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
12641264
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
12651265

1266+
node-abi@^2.21.0:
1267+
version "2.30.1"
1268+
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.30.1.tgz#c437d4b1fe0e285aaf290d45b45d4d7afedac4cf"
1269+
integrity sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==
1270+
dependencies:
1271+
semver "^5.4.1"
1272+
12661273
node-abi@^2.7.0:
12671274
version "2.19.3"
12681275
resolved "https://registry.yarnpkg.com/node-abi/-/node-abi-2.19.3.tgz#252f5dcab12dad1b5503b2d27eddd4733930282d"
@@ -1292,11 +1299,6 @@ node-addon-api@^7.0.0:
12921299
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-7.1.1.tgz#1aba6693b0f255258a049d621329329322aad558"
12931300
integrity sha512-5m3bsyrjFWE1xf7nz7YXdN4udnVtXK6/Yfgn5qnahL6bCkf2yKt4k3nuTKAtT4r3IG8JNR2ncsIMdZuAzJjHQQ==
12941301

1295-
node-addon-api@^8.3.0:
1296-
version "8.3.0"
1297-
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-8.3.0.tgz#ec3763f18befc1cdf66d11e157ce44d5eddc0603"
1298-
integrity sha512-8VOpLHFrOQlAH+qA0ZzuGRlALRA6/LVh8QJldbrC4DY0hXoMP0l4Acq8TzFC018HztWiRqyCEj2aTWY2UvnJUg==
1299-
13001302
noop-logger@^0.1.1:
13011303
version "0.1.1"
13021304
resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2"
@@ -1449,7 +1451,26 @@ prebuild-install@^5.3.5:
14491451
tunnel-agent "^0.6.0"
14501452
which-pm-runs "^1.0.0"
14511453

1452-
prebuild-install@^7.0.1, prebuild-install@^7.1.3:
1454+
prebuild-install@^6.0.0:
1455+
version "6.1.4"
1456+
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-6.1.4.tgz#ae3c0142ad611d58570b89af4986088a4937e00f"
1457+
integrity sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==
1458+
dependencies:
1459+
detect-libc "^1.0.3"
1460+
expand-template "^2.0.3"
1461+
github-from-package "0.0.0"
1462+
minimist "^1.2.3"
1463+
mkdirp-classic "^0.5.3"
1464+
napi-build-utils "^1.0.1"
1465+
node-abi "^2.21.0"
1466+
npmlog "^4.0.1"
1467+
pump "^3.0.0"
1468+
rc "^1.2.7"
1469+
simple-get "^3.0.3"
1470+
tar-fs "^2.0.0"
1471+
tunnel-agent "^0.6.0"
1472+
1473+
prebuild-install@^7.0.1:
14531474
version "7.1.3"
14541475
resolved "https://registry.yarnpkg.com/prebuild-install/-/prebuild-install-7.1.3.tgz#d630abad2b147443f20a212917beae68b8092eec"
14551476
integrity sha512-8Mf2cbV7x1cXPUILADGI3wuhfqWvtiLA1iclTDbFRZkgRQS0NqsPZphna9V+HyTEadheuPmjaJMsbzKQFOzLug==

0 commit comments

Comments
 (0)