mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-08-01 01:47:43 -04:00
25 lines
961 B
JavaScript
25 lines
961 B
JavaScript
import { screen } from "@testing-library/react-native";
|
|
import AddToProjects from "components/AddToProjects/AddToProjects";
|
|
import React from "react";
|
|
import { renderComponent } from "tests/helpers/render";
|
|
|
|
function renderAddToProjects( ) {
|
|
return renderComponent(
|
|
<AddToProjects />,
|
|
);
|
|
}
|
|
describe( "AddToProjects", () => {
|
|
it( "renders section headers and collection/umbrella explainer", ( ) => {
|
|
renderAddToProjects( );
|
|
expect( screen.getByText( "Traditional Projects" ) ).toBeVisible( );
|
|
expect( screen.getByText(
|
|
"You can manually add observations to Traditional Projects you have joined.",
|
|
) ).toBeVisible( );
|
|
expect( screen.getByText( "Collection & Umbrella Projects" ) ).toBeVisible( );
|
|
expect( screen.getByText(
|
|
// eslint-disable-next-line max-len
|
|
"For most other projects, observations that meet project requirements will automatically be included in projects.",
|
|
) ).toBeVisible( );
|
|
} );
|
|
} );
|