Skip to content

Commit

Permalink
fix cypress test
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaJ2305 committed Dec 24, 2024
1 parent 371827b commit 8cb506d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion cypress/pageobject/Users/UserSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,6 @@ export class UserPage {
}

verifyListView() {
cy.get("#user-list-view").should("have.class", "text-white");
cy.get("#user-list-view").should("have.attr", "data-state", "active");
}
}
8 changes: 4 additions & 4 deletions src/components/Facility/FacilityUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@ export default function FacilityUsers(props: { facilityId: number }) {
</div>
<Tabs value={activeTab} onValueChange={setActiveTab}>
<TabsList>
<TabsTrigger value="cardView">
<div className="flex items-center gap-2" id="user-card-view">
<TabsTrigger value="cardView" id="user-card-view">
<div className="flex items-center gap-2">
<CareIcon icon="l-credit-card" className="text-lg" />
<span>Card</span>
</div>
</TabsTrigger>
<TabsTrigger value="listView">
<div className="flex items-center gap-2" id="user-list-view">
<TabsTrigger value="listView" id="user-list-view">
<div className="flex items-center gap-2">
<CareIcon icon="l-list-ul" className="text-lg" />
<span>List</span>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Users/ManageUsers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ export default function ManageUsers() {
</div>
<Tabs value={activeTab} onValueChange={setActiveTab}>
<TabsList>
<TabsTrigger value="cardView">
<div className="flex items-center gap-2" id="user-card-view">
<TabsTrigger value="cardView" id="user-card-view">
<div className="flex items-center gap-2">
<CareIcon icon="l-credit-card" className="text-lg" />
<span>Card</span>
</div>
</TabsTrigger>
<TabsTrigger value="listView">
<TabsTrigger value="listView" id="user-list-view">
<div className="flex items-center gap-2" id="user-list-view">
<CareIcon icon="l-list-ul" className="text-lg" />
<span>List</span>
Expand Down

0 comments on commit 8cb506d

Please sign in to comment.