Skip to content

Commit

Permalink
added test for search component (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
SohaibMagrabi authored Jun 7, 2024
1 parent 92fdd6a commit ff3f847
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nightwatch/components/search.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import GlobalStyles from '../../src/components/GlobalStyles';
import Search from '../../src/components/Search';


export default {
title: "Search Component",
component: Search
};

export const SearchComponent = () => (
<>
<GlobalStyles />
<Search />
</>
);

SearchComponent.test = async (browser, { component }) => {
browser.expect(component).to.be.visible;
browser.click(component);
};

0 comments on commit ff3f847

Please sign in to comment.