Skip to content

Commit 2557a5d

Browse files
committed
Fixing CI
1 parent e7c1d15 commit 2557a5d

File tree

11 files changed

+90
-27
lines changed

11 files changed

+90
-27
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
22
@brewskey:registry=https://npm.pkg.github.com
3-
always-auth=true

package-lock.json

Lines changed: 61 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"test:e2e:expo:ui": "concurrently \"npm run web\" \"wait-on http://localhost:8081 && playwright test --ui\""
2222
},
2323
"dependencies": {
24-
"@brewskey/js-api": "^2.0.5",
24+
"@brewskey/js-api": "^2.0.6",
2525
"@expo/metro-runtime": "~6.1.2",
2626
"@frsty/slot-fill": "^0.2.4",
2727
"@hookform/error-message": "^2.0.1",

src/components/KegForm/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ export const KegForm: React.FC<Props> = ({
8181
},
8282
});
8383

84-
8584
const kegType = form.watch('kegType');
8685

8786
const selectedKegTypeMaxOunces = MAX_OUNCES_BY_KEG_TYPE[kegType] || 0;
@@ -137,7 +136,10 @@ export const KegForm: React.FC<Props> = ({
137136
{!shouldShowFloatedButton ? null : (
138137
<SubmitButton<FormFields>
139138
allowSubmitWhenValid
140-
buttonStyle={{ backgroundColor: COLORS.accent, marginBottom: 4 }}
139+
buttonStyle={{
140+
backgroundColor: COLORS.accent,
141+
marginBottom: 4,
142+
}}
141143
onSubmit={onFloatKegForm}
142144
title="Keg Floated"
143145
/>

src/components/LoginForm.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ export const LoginForm = ({ isInverse }: { isInverse: boolean }) => {
7979
<SectionContent paddedVertical>
8080
<SubmitButton<FormProps>
8181
allowSubmitWhenValid
82-
buttonStyle={isInverse ? { backgroundColor: COLORS.secondary } : undefined}
82+
buttonStyle={
83+
isInverse ? { backgroundColor: COLORS.secondary } : undefined
84+
}
8385
onSubmit={onSubmit}
8486
testID="login-submit-button"
8587
title="Log in"

src/routes/(tabs)/(feed,stats,notifications,menu)/flow-sensor/custom.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ const NewFlowSensorCustomScreen = withErrorBoundary(
2929
const _onFormSubmit = async (values: FlowSensorMutator): Promise<void> => {
3030
await createFlowSensor.mutateAsync(values);
3131
router.navigate({
32-
pathname:
33-
'/taps/[tapId]/keg/new',
32+
pathname: '/taps/[tapId]/keg/new',
3433
params: {
3534
tapId: String(tapId),
3635
...(returnTo ? { returnTo } : {}),

src/routes/(tabs)/(feed,stats,notifications,menu)/flow-sensor/new.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ const NewFlowSensorScreen = withErrorBoundary(
5353
router.back();
5454
} else {
5555
router.navigate({
56-
pathname:
57-
'/taps/[tapId]/keg/new',
56+
pathname: '/taps/[tapId]/keg/new',
5857
params: {
5958
tapId: String(tapId),
6059
...(returnTo ? { returnTo } : {}),

src/routes/(tabs)/(feed,stats,notifications,menu)/taps/[tapId]/edit/payments.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ const EditTapPaymentsRouteContent: React.FC = () => {
5252
// All hooks must be called unconditionally before any early returns
5353
const form = useFormContext<PriceVariantMutator>();
5454
const isFormReady = form.formState != null;
55-
const { formState: { errors, isSubmitting } } = form;
55+
const {
56+
formState: { errors, isSubmitting },
57+
} = form;
5658

5759
const addSnackBarMessage = useAddSnackBarMessage();
5860

@@ -193,13 +195,13 @@ const EditTapPaymentsRouteContent: React.FC = () => {
193195
/>
194196

195197
<FormField<PriceVariantMutator, typeof TextInput>
196-
component={TextInput}
197-
defaultValue={(formValue != null ? formValue.ounces : 0).toFixed(1)}
198-
keyboardType="numeric"
199-
label="Ounces"
200-
name="ounces"
201-
required="Ounces is required"
202-
/>
198+
component={TextInput}
199+
defaultValue={(formValue != null ? formValue.ounces : 0).toFixed(1)}
200+
keyboardType="numeric"
201+
label="Ounces"
202+
name="ounces"
203+
required="Ounces is required"
204+
/>
203205
<FormField<PriceVariantMutator, typeof TextInput>
204206
component={TextInput}
205207
keyboardType="numeric"

tests/e2e/navigation/navigation.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ test('should navigate between bottom tabs', async ({ page }) => {
2727
const notificationsTab = page.getByTestId('tab-notifications');
2828
await expect(notificationsTab).toBeVisible();
2929
await notificationsTab.click();
30-
await expect(page.getByTestId('button-delete-all-notifications')).toBeVisible();
30+
await expect(
31+
page.getByTestId('button-delete-all-notifications'),
32+
).toBeVisible();
3133

3234
// Menu tab has testID - use that instead of text-based locator
3335
const menuTab = page.getByTestId('tab-menu');

tests/e2e/nux/nux-tap.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { test, expect } from '../../fixtures/test-fixtures';
21
import { mockNewUserState } from '../../fixtures/entity-fixtures';
2+
import { expect, test } from '../../fixtures/test-fixtures';
33

44
test('should display tap creation prompt', async ({ page, nuxPage }) => {
55
// Set up explicit data: new user
66
await mockNewUserState(page);
77
await nuxPage.gotoTapStep();
88

9-
await expect(page).toHaveURL(/.*nux.*tap/i);
9+
await expect(page).toHaveURL('/tap');
1010
// Tap screen has testID - use that instead of text-based locator
1111
await expect(page.getByTestId('nux-tap-content')).toBeVisible();
1212
await expect(page.getByTestId('nux-tap-description')).toBeVisible();
@@ -39,8 +39,7 @@ test('should navigate to taps/new when Next is clicked with deviceId', async ({
3939
page,
4040
nuxPage,
4141
}) => {
42-
const { mockDeviceWithTaps } =
43-
await import('../../fixtures/entity-fixtures');
42+
const { mockDeviceWithTaps } = await import('../../fixtures/entity-fixtures');
4443
await mockNewUserState(page);
4544
const { device } = await mockDeviceWithTaps(page, 0);
4645

0 commit comments

Comments
 (0)