Skip to content

Commit

Permalink
Merge pull request #43 from subhajit20/issue/Tag_component_test
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsingh97 committed Mar 6, 2024
2 parents 2e60875 + e2f86c4 commit 8beb22a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions nightwatch/components/tags.spec.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import Tags from '../../src/components/Tags';
import GlobalStyles from '../../src/components/GlobalStyles';

export default {
title: 'Tag Component',
component: Tags
};

export const TagsComponent = () => (
<>
<GlobalStyles />
<Tags>
Sample Tag
</Tags>
</>
);

TagsComponent.test = async (browser, { component }) => {
browser.expect(component).to.be.visible;
browser.expect(component).text.to.equal("Sample Tag");
};

0 comments on commit 8beb22a

Please sign in to comment.