Skip to content

Instantly share code, notes, and snippets.

View pablocattaneo's full-sized avatar

Pablo Cattaneo pablocattaneo

View GitHub Profile
1. in the mini app run the command `bun run prepare-mobile-test`
bun dev -p 300X (change X with the standardized number for the specific mini app, for example 3001 in the case of UPI)
1. get your local network copy the domain of the url with your local network and change localhost env var likes with that value (copy just the domain which is something like 192.168.XX.XX) also change NEXT_MINI_APP_COOKIES_DOMAIN set to local network for example NEXT_MINI_APP_COOKIES_DOMAIN = '192.168.10.21'
3. change the env vars in your beacon app project that are pointing to the staging urls of the miniapps to point to your local network version of the mini app which is something like http://192.168.1.7:3001
1. upgreade beacon-ui version
2. Use that version on the project that will be deployed
3. create a tag with the new beacon-ui version and push the tag git push --tag
4. Merge change to main in beacon-ui project using squash
5. then crea tag with version name and do a push origin of the tag
yarn link on beacon-ui project
yarn link "@mybeaconlabs/beacon-ui" on IBP project
ayuda: git config pull.rebase false # fusionar
ayuda: git config pull.rebase true # rebasar
ayuda: git config pull.ff only # solo avance rápido
when that appears I allways select the first one: fusionar
// test.describe.configure({ mode: 'serial' });
// https://playwright.dev/docs/test-parallel#serial-mode
import { test, type Page } from '@playwright/test';
// Annotate entire file as serial.
test.describe.configure({ mode: 'serial' });
let page: Page;
test.beforeAll(async ({ browser }) => {
# You can now run tests that have a particular tag with --grep command line option.
npx playwright test --grep @fast
// https://playwright.dev/docs/test-annotations#tag-tests
// To tag a test, either provide an additional details object when declaring a test, or add @-token to the test title. Note that tags must start with @ symbol.
import { test, expect } from '@playwright/test';
test.describe('group', {
tag: '@report',
}, () => {
test('test report header', async ({ page }) => {
npx test filename.spec.ts --grep groupName
# https://playwright.dev/docs/test-retries#retries
npx playwright test --retries=3