Fix discord link (#2550)

* Update alpha.tsx

* Fix discord link test

* Fix use correct test assertion

---------

Co-authored-by: Vítor Vasconcellos <vasconcellos.dev@gmail.com>
This commit is contained in:
Utku 2024-06-11 11:38:21 -04:00 committed by GitHub
parent 405fb023d8
commit 0cd993c699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 4 deletions

View file

@ -1,4 +1,4 @@
import { discordUrl, libraryName, privacyUrl } from '../fixtures/onboarding.json';
import { libraryName, privacyUrl } from '../fixtures/onboarding.json';
import {
libraryRegex,
newLibraryRegex,
@ -39,7 +39,7 @@ describe('Onboarding', () => {
// Check Join Discord button exists and point to a valid discord invite
cy.get('button').contains('Join Discord').click();
cy.get('@winOpen').should('be.calledWith', discordUrl);
cy.get('@winOpen').should('be.calledWithMatch', /https:\/\/discord.gg\/.+/);
// Check we have a button to continue to the Library creation
cy.get('a')

View file

@ -1,5 +1,4 @@
{
"discordUrl": "https://discord.gg/ukRnWSnAbG",
"privacyUrl": "https://www.spacedrive.com/docs/product/resources/privacy",
"libraryName": "Test Library"
}

View file

@ -31,7 +31,7 @@ export default function OnboardingAlpha() {
</p>
<div className="mt-0 flex w-full items-center justify-center gap-2">
<Button
onClick={() => platform.openLink('https://discord.gg/ukRnWSnAbG')}
onClick={() => platform.openLink('https://discord.gg/gTaF2Z44f5')}
className="flex gap-2"
variant="gray"
>