Skip to content

Commit

Permalink
Merge branch 'master' into btnspace
Browse files Browse the repository at this point in the history
  • Loading branch information
akshatnema authored Sep 6, 2023
2 parents da58c56 + 8e92e1d commit 2b51276
Show file tree
Hide file tree
Showing 106 changed files with 155 additions and 157 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mount } from 'cypress/react'
import AlgoliaSearch from '../../components/AlgoliaSearch'
import { SearchButton } from '../../components/AlgoliaSearch';
import { DocSearchModal } from '@docsearch/react'
import AlgoliaSearch from '../../../components/AlgoliaSearch'
import { SearchButton } from '../../../components/AlgoliaSearch';


describe('AlgoliaSearch component', () => {
it('renders without errors', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react'
import AuthorAvatars from '../../components/AuthorAvatars';
import AuthorAvatars from '../../../components/AuthorAvatars';

describe('AuthorAvatars', () => {
const authors = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import Calendar from '../../components/Calendar';
import eventsData from '../../config/meetings.json';
import Calendar from '../../../components/Calendar';
import eventsData from '../../../config/meetings.json';

describe('Calendar component', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import Caption from '../../components/Caption';
import Caption from '../../../components/Caption';

describe('Caption component', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import CaseStudyCard from '../../components/CaseStudyCard';
import CaseStudiesList from "../../config/case-studies.json";
import CaseStudyCard from '../../../components/CaseStudyCard';
import CaseStudiesList from "../../../config/case-studies.json";
describe('CaseStudyCard Component', () => {

it('renders the CaseStudyCard component with study data', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import DemoAnimation from '../../components/DemoAnimation';
import DemoAnimation from '../../../components/DemoAnimation';

describe('DemoAnimation', () => {
it('renders without errors', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from "cypress/react";
import Feedback from '../../components/Feedback'
import MockRouter from '../../cypress/utils/router'
import Feedback from '../../../components/Feedback'
import MockRouter from '../../utils/router'
describe('Meeting component', () => {
beforeEach(() => {
mount(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import Figure from '../../components/Figure';
import Figure from '../../../components/Figure';

describe('Figure', () => {
it('renders the figure with the image and caption', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import GeneratorInstallation from '../../components/GeneratorInstallation';
import GeneratorInstallation from '../../../components/GeneratorInstallation';

describe('GeneratorInstallation', () => {
it('renders without errors', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import Hero from '../../components/Hero';
import Hero from '../../../components/Hero';

describe('Hero Component', () => {
it('displays the correct content', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import InlineHelp from '../../components/InlineHelp';
import InlineHelp from '../../../components/InlineHelp';

describe('InlineHelp', () => {
it('toggles help text visibility on click and hover', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import JobSummary from '../../components/JobSummary';
import JobSummary from '../../../components/JobSummary';
describe('JobSummary', () => {
it('renders job summary with correct information', () => {
const job = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import MacWindow from '../../components/MacWindow';
import MacWindow from '../../../components/MacWindow';

describe('MacWindow Component', () => {
it('renders the component props', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from "cypress/react";
import Meeting from "../../components/Meeting";
import Meeting from "../../../components/Meeting";
describe('Meeting component', () => {
it('renders correctly with provided props', () => {
const props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import Modal from '../../components/Modal';
import Modal from '../../../components/Modal';


describe('Modal', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import NewsletterSubscribe from '../../components/NewsletterSubscribe';
import NewsletterSubscribe from '../../../components/NewsletterSubscribe';

describe('NewsletterSubscribe Component', () => {
it('renders the component with default props', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from '@cypress/react'
import OpenAPIComparison from '../../components/OpenAPIComparison'
import OpenAPIComparison from '../../../components/OpenAPIComparison'

describe('OpenAPIComparison', () => {
it('renders without errors', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import Profile from '../../components/Profile';
import Profile from '../../../components/Profile';
describe('Profile Component', () => {
it('renders null when profiles array is empty', () => {
const props = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import Remember from '../../components/Remember';
import LightBulb from '../../components/icons/LightBulb';
import Remember from '../../../components/Remember';
import LightBulb from '../../../components/icons/LightBulb';
describe('Remember Component', () => {
it('renders the component with the provided title and children', () => {
const title = 'Remember This';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from '@cypress/react';
import RoadmapColumn from '../../../components/roadmap/RoadmapColumn';
import RoadmapList from '../../../components/roadmap/RoadmapList';
import RoadmapColumn from '../../../../components/roadmap/RoadmapColumn';
import RoadmapList from '../../../../components/roadmap/RoadmapList';

describe('RoadmapColumn Component', () => {
it('renders the RoadmapColumn component with title and description', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from '@cypress/react';
import RoadmapItem from '../../../components/roadmap/RoadmapItem';
import RoadmapItem from '../../../../components/roadmap/RoadmapItem';

describe('RoadmapItem', () => {
const item = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import RoadmapList from '../../../components/roadmap/RoadmapList';
import RoadmapList from '../../../../components/roadmap/RoadmapList';
describe('RoadmapList component', () => {
const items = [
{ title: 'Item 1', description: 'Description 1' },
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import SupportUs from '../../components/SupportUs/SupportUs';
import SupportUs from '../../../components/SupportUs/SupportUs';
describe('SupportUs component', () => {
beforeEach(() => {
cy.mount(<SupportUs />);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from '@cypress/react';
import TOC from '../../components/TOC';
import TOC from '../../../components/TOC';

describe('TOC', () => {
const toc = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import Testimonial from '../../components/Testimonial';
import Testimonial from '../../../components/Testimonial';

describe('Testimonial Component', () => {
it('should render the testimonial with correct data', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import Warning from '../../components/Warning';
import IconExclamation from '../../components/icons/Exclamation';
import Warning from '../../../components/Warning';
import IconExclamation from '../../../components/icons/Exclamation';

describe('Warning Component', () => {
it('renders the component with the provided title and description', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import ApplyJobButton from '../../../components/buttons/ApplyJob';
import ApplyJobButton from '../../../../components/buttons/ApplyJob';

describe('ApplyJobButton', () => {
const job = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import Button from '../../../components/buttons/Button';
import IconGithub from '../../../components/icons/Github'
import Button from '../../../../components/buttons/Button';
import IconGithub from '../../../../components/icons/Github';
describe('Button component', () => {
it('renders a button without href', () => {
const text = 'Click me';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import ChapterSuggestion from '../../../components/buttons/ChapterSuggestion';
import ChapterSuggestion from '../../../../components/buttons/ChapterSuggestion';
describe('ChapterSuggestion', () => {
const chapter = {
href: 'https://www.asyncapi.com/',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react';
import DocsButton from '../../../components/buttons/DocsButton';
import DocsButton from '../../../../components/buttons/DocsButton';
describe('DocsButton', () => {

it('does not render buttons without post data', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react';
import GithubButton from '../../../components/buttons/GithubButton'
import GithubButton from '../../../../components/buttons/GithubButton'
describe('GithubButton', () => {
it('renders correctly with default props', () => {
mount(<GithubButton />);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react'
import GitHubIssue from '../../../components/buttons/GitHubIssue';
import GitHubIssue from '../../../../components/buttons/GitHubIssue';
describe('GitHubIssue', () => {
it('renders correctly with default props', () => {
mount(<GitHubIssue />);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react'
import GoogleCalendarButton from '../../../components/buttons/GoogleCalendarButton'
import GoogleCalendarButton from '../../../../components/buttons/GoogleCalendarButton'
describe('GoogleCalendarButton', () => {
it('renders correctly with default props', () => {
mount(<GoogleCalendarButton />);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import ICSFButton from '../../../components/buttons/ICSFileButton';
import ICSFButton from '../../../../components/buttons/ICSFileButton';

describe('ICSFButton', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import OpenInPlaygroundButton from "../../../components/buttons/OpenInPlaygroundButton"
import OpenInPlaygroundButton from "../../../../components/buttons/OpenInPlaygroundButton"

describe('OpenInPlaygroundButton', () => {
it('renders correctly with default props', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { mount } from 'cypress/react';
import OpenInStudioButton from '../../../components/buttons/OpenInStudioButton';
import OpenInStudioButton from '../../../../components/buttons/OpenInStudioButton';

describe('OpenInStudioButton', () => {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react';
import SlackButton from '../../../components/buttons/SlackButton';
import SlackButton from '../../../../components/buttons/SlackButton';
describe('Slack Button', () => {
it('renders correctly with default props', () => {
mount(<SlackButton/>);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react';
import SubscribeButton from '../../../components/buttons/SubscribeButton';
import SubscribeButton from '../../../../components/buttons/SubscribeButton';

describe('Subscribe Button', () => {
it('renders correctly with default props', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {mount} from 'cypress/react';
import YoutubeButton from '../../../components/buttons/YoutubeButton';
import YoutubeButton from '../../../../components/buttons/YoutubeButton';

describe('Youtube Button', () => {
it('renders correctly with default props', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from '@cypress/react';
import AnnouncementHero from '../../../components/campaigns/AnnoucementHero';
import AnnouncementHero from '../../../../components/campaigns/AnnoucementHero';
beforeEach(() => {
const mockDate = new Date('2023-05-01T00:00:00Z');
cy.clock(mockDate.getTime());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import moment from 'moment';
import { mount } from '@cypress/react';
import AnnouncementRemainingDays from '../../../components/campaigns/AnnouncementRamainingDays';
import AnnouncementRemainingDays from '../../../../components/campaigns/AnnouncementRamainingDays';

describe('AnnouncementRemainingDays', () => {
it('displays correct countdown text', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from '@cypress/react';
import Banner from '../../../components/campaigns/Banner';
import Banner from '../../../../components/campaigns/Banner';

describe('Banner Component', () => {
it('should not render the banner when the date is not within the valid range', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { mount } from 'cypress/react';
import SmallHomeCards from '../../../components/community/Card';
import SmallHomeCards from '../../../../components/community/Card';
import React from 'react';
import IconArrowUp from '../../../components/icons/ArrowUp';
import IconArrowUp from '../../../../components/icons/ArrowUp';

describe('SmallHomeCards', () => {
it('renders small card correctly', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import Header from '../../../components/community/Header';
import Header from '../../../../components/community/Header';

describe('Header Component', () => {
it('renders the Header component correctly', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from 'cypress/react';
import Hero from '../../../components/community/Hero'
import orbitData from '../../../config/orbitData.json'
import Hero from '../../../../components/community/Hero'
import orbitData from '../../../../config/orbitData.json'

describe('Hero Component', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from '@cypress/react';
import HomeCards from '../../../components/community/HomeCard';
import HomeCards from '../../../../components/community/HomeCard';

describe('HomeCards Component', () => {
it('renders correctly', () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import { mount } from '@cypress/react';
import Table from '../../../components/dashboard/table/Table';
import GoodFirstIssues from '../../../components/dashboard/GoodFirstIssues';
import Table from '../../../../components/dashboard/table/Table';
import GoodFirstIssues from '../../../../components/dashboard/GoodFirstIssues';

describe('GoodFirstIssues Component', () => {
const issues = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import { mount } from 'cypress/react';
import GoodFirstIssuesTip from '../../../components/dashboard/GoodFirstIssuesTip';
import GoodFirstIssuesTip from '../../../../components/dashboard/GoodFirstIssuesTip';

describe('GoodFirstIssuesTip', () => {
beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import React from 'react';
import { mount } from 'cypress/react';
import Header from '../../../components/dashboard/Header';
import Button from '../../../components/buttons/Button';
import GithubButton from '../../../components/buttons/GithubButton';
import SlackButton from '../../../components/buttons/SlackButton';
import Header from '../../../../components/dashboard/Header';
import Button from '../../../../components/buttons/Button';
import GithubButton from '../../../../components/buttons/GithubButton';
import SlackButton from '../../../../components/buttons/SlackButton';

describe('Header', () => {
beforeEach(() => {
Expand Down
Loading

0 comments on commit 2b51276

Please sign in to comment.