Skip to content

Commit

Permalink
Update teacher-add.test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedNufais5891 authored Jan 1, 2025
1 parent fd4df5a commit dd770b8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/test/teacher-add.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@ fixture`Testing Teacher UI`
.page`http://localhost:4401/`

test('Testing add teachers', async t => {
await t.navigateTo("/Teacher");
await t.navigateTo("/dbinitialize");

await t.navigateTo("/addTeacher");
await t.typeText("#teacher-id", "123456");
await t.typeText("#teacher-name", "Mohan Perera");
await t.typeText("#teacher-age", "45");
await t.click("#teacher-add");

await t.navigateTo("/Teacher");
await t.navigateTo("/");

const table = Selector('#teacher-table')
const rowCount = await table.find('tr').count;
Expand Down

0 comments on commit dd770b8

Please sign in to comment.