mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-06-30 12:33:31 +00:00
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:
parent
405fb023d8
commit
0cd993c699
|
@ -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')
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"discordUrl": "https://discord.gg/ukRnWSnAbG",
|
||||
"privacyUrl": "https://www.spacedrive.com/docs/product/resources/privacy",
|
||||
"libraryName": "Test Library"
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue