From 7d1b77d51a66fc5c59c59bea1e15d74af0c8ad40 Mon Sep 17 00:00:00 2001 From: Mohamed Nufais <125565667+MohamedNufais5891@users.noreply.github.com> Date: Wed, 1 Jan 2025 16:47:58 +0530 Subject: [PATCH] Update student-add.test.js --- frontend/test/student-add.test.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frontend/test/student-add.test.js b/frontend/test/student-add.test.js index 8b19fa7..6bc3f09 100644 --- a/frontend/test/student-add.test.js +++ b/frontend/test/student-add.test.js @@ -5,19 +5,21 @@ fixture`Testing Student UI` .page`http://localhost:4401/student` test('Testing add students', async t => { - await t.navigateTo("/Students"); + await t.navigateTo("/dbinitialize"); await t.typeText("#student-id", "999999"); await t.typeText("#student-name", "Pasindu Basnayaka"); await t.typeText("#student-age", "45"); await t.typeText("#student-Hometown", "Catholic"); await t.click("#student-add"); - await t.navigateTo("/Students"); + await t.navigateTo("/dbinitialize"); const table = Selector('#student-table') const rowCount = await table.find('tr').count; let tdText = await table.find('tr').nth(rowCount - 1).innerText; - await t.expect(tdText).contains("Pasindu Basnayaka"); + await t.expect(tdText).contains("dbinitialize"); }); + +