Skip to content

Commit

Permalink
fix: update cypress notifcations page testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheriff-Oladimeji committed Dec 1, 2023
1 parent 81c9066 commit 9f47a3e
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 11 deletions.
Binary file modified cypress/downloads/download
Binary file not shown.
77 changes: 66 additions & 11 deletions cypress/e2e/notification.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,72 @@ describe('Notifications Components', () => {
// Load the fixture containing avatar data
cy.fixture('avatar.json').then((avatarData) => {
// Mock data for Messages component
const notifications = [
{
id: 1,
name: 'Mohammed Al El',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: false,
},
]

const notifications = [
{
id: 1,
name: 'Mohammed Al El',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: false,
},
{
id: 2,
name: 'Israel Faizul',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: false,
},
{
id: 3,
name: 'Solomon Ideh',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: false,
},
{
id: 4,
name: 'Ebubechukwu Agnes',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: true,
},
{
id: 5,
name: 'Folasayo Ogunnaike',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: true,
},
{
id: 6,
name: 'Ogunmodede-Smart Olusegun',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: true,
},
{
id: 7,
name: 'Folasayo Ogunnaike',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: true,
},
{
id: 8,
name: 'Israel Faizul',
msg: 'Downloaded your model “Speech therapy TXT” ',
time: '12 Minutes ago',
avatar: avatarData.avatar.url,
read: true,
},
]
// Log to the Cypress command log
cy.log('Visiting the page')
cy.visit('dashboard/notifications')
Expand Down

0 comments on commit 9f47a3e

Please sign in to comment.