An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
Merge remote-tracking branch 'origin/main' into next
github-actions[bot]5b749850a30b
diff --cc tests/Feature/TeamInvitationUiTest.phpindex 38c8910986,13b6de23e5..949a301923--- a/tests/Feature/TeamInvitationUiTest.php+++ b/tests/Feature/TeamInvitationUiTest.php@@@ -62,8 -64,41 +62,37 @@@ it('renders a real copy button for pend->assertSeeHtml('type="button"');});-it('exposes a resilient global copyToClipboard helper', function () {+it('keeps clipboard logic in the shared copy button instead of a global helper', function () {$layout = file_get_contents(resource_path('views/layouts/base.blade.php'));- expect($layout)- ->toContain('async function copyToClipboard(text)')- ->toContain('window.copyToClipboard = copyToClipboard')- ->toContain('document.execCommand(\'copy\')')- ->toContain('window.isSecureContext');+ expect($layout)->not->toContain('copyToClipboard');});++ it('preserves a provisional user when revoking their invitation fails', function () {+ $provisionalUser = User::factory()->create([+ 'email' => '[email protected]',+ 'email_verified_at' => null,+ 'force_password_reset' => true,+ ]);+ $invitation = TeamInvitation::create([+ 'team_id' => $this->team->id,+ 'uuid' => 'failing-invitation-delete',+ 'email' => $provisionalUser->email,+ 'role' => 'member',+ 'link' => 'http://example.test/invitations/failing-invitation-delete',+ 'via' => 'link',+ ]);++ TeamInvitation::deleting(function (): void {+ throw new RuntimeException('Invitation deletion failed.');+ });++ Livewire::test(Invitations::class, [+ 'invitations' => collect([$invitation]),+ ])+ ->call('deleteInvitation', $invitation->id)+ ->assertDispatched('error');++ $this->assertDatabaseHas('users', ['id' => $provisionalUser->id]);+ $this->assertDatabaseHas('team_invitations', ['id' => $invitation->id]);+ });