test(frontend): Add goto(root)
This commit is contained in:
		
							parent
							
								
									f75dcd988d
								
							
						
					
					
						commit
						89eba4f9a0
					
				
					 2 changed files with 6 additions and 0 deletions
				
			
		|  | @ -1,6 +1,8 @@ | ||||||
| import { test, expect } from '@playwright/test'; | import { test, expect } from '@playwright/test'; | ||||||
| 
 | 
 | ||||||
| test('Teacher can create new assignment', async ({ page }) => { | test('Teacher can create new assignment', async ({ page }) => { | ||||||
|  |     await page.goto("/") | ||||||
|  | 
 | ||||||
|     // Login
 |     // Login
 | ||||||
|     await page.getByRole("link", { name: "log in" }).click(); |     await page.getByRole("link", { name: "log in" }).click(); | ||||||
|     await page.getByRole("button", { name: "teacher" }).click(); |     await page.getByRole("button", { name: "teacher" }).click(); | ||||||
|  |  | ||||||
|  | @ -32,6 +32,8 @@ test("Teacher can create a class", async ({ page }) => { | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| test('Teacher can share a class by code', async ({ page }) => { | test('Teacher can share a class by code', async ({ page }) => { | ||||||
|  |     await page.goto("/") | ||||||
|  | 
 | ||||||
|     // Login
 |     // Login
 | ||||||
|     await page.getByRole("link", { name: "log in" }).click(); |     await page.getByRole("link", { name: "log in" }).click(); | ||||||
|     await page.getByRole("button", { name: "teacher" }).click(); |     await page.getByRole("button", { name: "teacher" }).click(); | ||||||
|  | @ -80,6 +82,8 @@ test("Student can join class by code", async ({ page }) => { | ||||||
| }); | }); | ||||||
| 
 | 
 | ||||||
| test('Teacher can remove student from class', async ({ page }) => { | test('Teacher can remove student from class', async ({ page }) => { | ||||||
|  |     await page.goto("/") | ||||||
|  | 
 | ||||||
|     // Login
 |     // Login
 | ||||||
|     await page.getByRole("link", { name: "log in" }).click(); |     await page.getByRole("link", { name: "log in" }).click(); | ||||||
|     await page.getByRole("button", { name: "teacher" }).click(); |     await page.getByRole("button", { name: "teacher" }).click(); | ||||||
|  |  | ||||||
		Reference in a new issue