From 7c4eb75c3230477fb362d699c60e21eff4dc8129 Mon Sep 17 00:00:00 2001 From: Mohamed Nufais <125565667+MohamedNufais5891@users.noreply.github.com> Date: Sat, 4 Jan 2025 01:51:24 +0530 Subject: [PATCH] Update student-add.test.js --- frontend/test/student-add.test.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/test/student-add.test.js b/frontend/test/student-add.test.js index 5e04b2a..a2b060b 100644 --- a/frontend/test/student-add.test.js +++ b/frontend/test/student-add.test.js @@ -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"); @@ -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"); });