Skip to content

Commit

Permalink
Update student-add.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedNufais5891 authored Jan 3, 2025
1 parent f4d3323 commit 7c4eb75
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/test/student-add.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ fixture`Testing Student UI`
.page`http://localhost:4401/student`

test('Testing add students', async t => {
await t.navigateTo("/student");

await t.navigateTo("/dbinitialize");

await t.navigateTo("/addStudent");
await t.typeText("#student-id", "999999");
await t.typeText("#student-name", "Pasindu Basnayaka");
await t.typeText("#student-age", "45");
Expand All @@ -18,5 +21,5 @@ test('Testing add students', async t => {
const rowCount = await table.find('tr').count;

let tdText = await table.find('tr').nth(rowCount - 1).innerText;
await t.expect(tdText).contains("dbinitialize");
await t.expect(tdText).contains("Pasindu Basnayaka");
});

0 comments on commit 7c4eb75

Please sign in to comment.