-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:safe-global/safe-wallet-web into ana…
…lytics
- Loading branch information
Showing
17 changed files
with
204 additions
and
76 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,21 @@ | ||
FROM node:18-alpine AS base | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
FROM base AS builder | ||
|
||
FROM node:18-alpine | ||
RUN apk add --no-cache libc6-compat git python3 py3-pip make g++ libusb-dev eudev-dev linux-headers | ||
WORKDIR /app | ||
|
||
# Install dependencies | ||
COPY package.json yarn.lock* ./ | ||
RUN yarn --frozen-lockfile | ||
COPY . . | ||
RUN yarn run after-install | ||
|
||
RUN yarn build | ||
|
||
# Production image | ||
FROM base AS runner | ||
WORKDIR /app | ||
# install deps | ||
RUN yarn install --frozen-lockfile | ||
RUN yarn after-install | ||
|
||
ENV NODE_ENV production | ||
ENV REVERSE_PROXY_UI_PORT 8080 | ||
|
||
RUN addgroup --system --gid 1001 nodejs && adduser --system --uid 1001 nextjs | ||
COPY --from=builder /app/out ./out | ||
|
||
# Set the correct permission for prerender cache | ||
RUN mkdir .next && chown nextjs:nodejs .next | ||
# Next.js collects completely anonymous telemetry data about general usage. | ||
# Learn more here: https://nextjs.org/telemetry | ||
# Uncomment the following line in case you want to disable telemetry during the build. | ||
ENV NEXT_TELEMETRY_DISABLED 1 | ||
|
||
USER nextjs | ||
EXPOSE 3000 | ||
|
||
EXPOSE ${REVERSE_PROXY_UI_PORT} | ||
ENV PORT 3000 | ||
|
||
CMD npx -y serve out -p ${REVERSE_PROXY_UI_PORT} | ||
CMD ["yarn", "static-serve"] |
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,5 @@ | ||
export const sideNavSettingsIcon = '[data-testid="settings-nav-icon"]' | ||
|
||
export function clickOnSideNavigation(option) { | ||
cy.get(option).should('exist').click() | ||
} |
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
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,50 @@ | ||
import * as constants from '../../support/constants' | ||
import * as main from '../pages/main.page' | ||
import * as createwallet from '../pages/create_wallet.pages' | ||
import * as owner from '../pages/owners.pages' | ||
import * as navigation from '../pages/navigation.page' | ||
|
||
describe('Safe creation Google tests', () => { | ||
beforeEach(() => { | ||
cy.visit(constants.welcomeUrl + '?chain=gor') | ||
cy.clearLocalStorage() | ||
main.acceptCookies() | ||
// TODO: Need credentials to finish API Google login | ||
// createwallet.loginGoogleAPI() | ||
}) | ||
|
||
it('Verify that "Connect with Google" option is disabled for the networks without Relay on the Welcome page', () => { | ||
owner.clickOnWalletExpandMoreIcon() | ||
owner.clickOnDisconnectBtn() | ||
createwallet.selectNetwork(constants.networks.polygon) | ||
createwallet.verifyGoogleConnectBtnIsDisabled() | ||
}) | ||
|
||
it.skip('Verify a successful connection with google', () => { | ||
createwallet.verifyGoogleSignin() | ||
}) | ||
|
||
it.skip('Verify Google account info in the header after account connection', () => { | ||
createwallet.verifyGoogleAccountInfoInHeader() | ||
}) | ||
|
||
it.skip('Verify a successful safe creation with a Google account', { defaultCommandTimeout: 90000 }, () => { | ||
createwallet.verifyGoogleSignin().click() | ||
createwallet.verifyOwnerInfoIsPresent() | ||
createwallet.clickOnReviewStepNextBtn() | ||
createwallet.verifySafeIsBeingCreated() | ||
createwallet.verifySafeCreationIsComplete() | ||
}) | ||
|
||
it.skip('Verify a successful transaction creation with Google account', { defaultCommandTimeout: 90000 }, () => { | ||
createwallet.verifyGoogleSignin().click() | ||
createwallet.clickOnReviewStepNextBtn() | ||
createwallet.verifySafeCreationIsComplete() | ||
navigation.clickOnSideNavigation(navigation.sideNavSettingsIcon) | ||
owner.openAddOwnerWindow() | ||
owner.typeOwnerAddress(constants.SEPOLIA_OWNER_2) | ||
owner.clickOnNextBtn() | ||
main.clickOnExecuteBtn() | ||
owner.verifyOwnerTransactionComplted() | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.