forked from Evarisk/Digirisk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add language fr and digirisk element page test
- Loading branch information
1 parent
27abeda
commit cea5f00
Showing
3 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { test, expect } from '@playwright/test'; | ||
|
||
const dolibarrUrl = 'http://localhost/dolibarr/htdocs/'; | ||
const digiriskUrl = dolibarrUrl + 'custom/digiriskdolibarr/'; | ||
|
||
test('digirisk element page', async ({ page }) => { | ||
await page.goto(digiriskUrl + 'view/digiriskstandard/digiriskstandard_card.php'); | ||
|
||
// Looking for first groupment (id1 = Trash) | ||
const gp_one = page.locator('.linkElement.id2'); | ||
|
||
await gp_one.click(); | ||
|
||
const gp_id = page.locator('.refid'); | ||
|
||
await expect(gp_id).toBeVisible(); | ||
await expect(gp_id).toContainText('GP1'); | ||
|
||
const gp_info = page.locator('.refidno'); | ||
|
||
await expect(gp_id).toBeVisible(); | ||
await expect(gp_id).toContainText('Document Unique'); | ||
|
||
const risklist = page.locator('.titre.inline-block'); | ||
|
||
await expect(risklist).toBeVisible(); | ||
await expect(risklist).toContainText('Liste des risques'); | ||
}); |