## Summary - **Merge queue optimization**: Created a dedicated `ci-merge-queue.yaml` workflow that only runs Playwright E2E tests on `ubuntu-latest-8-cores`. Removed `merge_group` trigger from all 7 existing CI workflows (front, server, shared, website, sdk, zapier, docker-compose). The merge queue goes from ~30+ parallel jobs to a single focused E2E job. - **Label-based merge queue simulation**: Added `run-merge-queue` label support so developers can trigger the exact merge queue E2E pipeline on any open PR before it enters the queue. - **Prettier in lint**: Chained `prettier --check` into `lint` and `prettier --write` into `lint --configuration=fix` across `nx.json` defaults, `twenty-front`, and `twenty-server`. Prettier formatting errors are now caught by `lint` and fixed by `lint:fix` / `lint:diff-with-main --configuration=fix`. ## After merge (manual repo settings) Update GitHub branch protection required status checks: 1. Remove old per-workflow merge queue checks (`ci-front-status-check`, `ci-e2e-status-check`, `ci-server-status-check`, etc.) 2. Add `ci-merge-queue-status-check` as the required check for the merge queue
59 lines
1.9 KiB
TypeScript
59 lines
1.9 KiB
TypeScript
import { randomUUID } from 'crypto';
|
|
import { expect, test } from './fixture';
|
|
|
|
test('Sign up with invite link via email', async ({
|
|
page,
|
|
loginPage,
|
|
leftMenu,
|
|
membersSection,
|
|
settingsPage,
|
|
profileSection,
|
|
confirmationModal,
|
|
}) => {
|
|
const email = `test${randomUUID().replaceAll('-', '')}@apple.dev`;
|
|
const firstName = 'John';
|
|
const lastName = 'Doe';
|
|
|
|
const inviteLink: string =
|
|
await test.step('Go to Settings and copy invite link', async () => {
|
|
await page.goto(process.env.LINK); // skip login page (and redirect) when running on environments with multi-workspace enabled
|
|
await leftMenu.goToSettings();
|
|
await settingsPage.goToMembersSection();
|
|
await membersSection.copyInviteLink();
|
|
return await page.evaluate('navigator.clipboard.readText()');
|
|
});
|
|
|
|
await test.step('Go to invite link', async () => {
|
|
await settingsPage.logout();
|
|
|
|
await Promise.all([
|
|
expect(page.getByText(/Join .+ team/)).toBeVisible(),
|
|
|
|
page.goto(inviteLink),
|
|
]);
|
|
});
|
|
|
|
await test.step('Create new account', async () => {
|
|
await loginPage.clickLoginWithEmailIfVisible();
|
|
await loginPage.typeEmail(email);
|
|
await loginPage.clickContinueButton();
|
|
await loginPage.typePassword(process.env.DEFAULT_PASSWORD);
|
|
await loginPage.clickSignUpButton();
|
|
await loginPage.typeFirstName(firstName);
|
|
await loginPage.typeLastName(lastName);
|
|
await loginPage.clickContinueButton();
|
|
});
|
|
|
|
await test.step('Delete account from workspace', async () => {
|
|
await expect(page.getByRole('button', { name: 'Settings' })).toBeVisible();
|
|
await leftMenu.goToSettings();
|
|
await settingsPage.goToProfileSection();
|
|
await profileSection.deleteAccount();
|
|
await expect(page.getByText('Account Deletion')).toBeVisible();
|
|
await confirmationModal.typePlaceholderToInput();
|
|
await confirmationModal.clickConfirmButton();
|
|
|
|
await page.waitForURL('**/welcome');
|
|
});
|
|
});
|