mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-21 10:41:04 +03:00
1d3299e384
Some checks are pending
CI / build (push) Waiting to run
CI / svelte-check (push) Blocked by required conditions
CI / formatting (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / uitest (push) Waiting to run
CI / uitest-pg (push) Waiting to run
CI / uitest-qms (push) Waiting to run
CI / docker-build (push) Blocked by required conditions
CI / dist-build (push) Blocked by required conditions
Signed-off-by: Jasmin <jasmin@hardcoreeng.com>
30 lines
1.3 KiB
TypeScript
30 lines
1.3 KiB
TypeScript
import { test } from '@playwright/test'
|
|
import { HomepageURI, PlatformSettingThird, PlatformURI } from '../utils'
|
|
import { allure } from 'allure-playwright'
|
|
import { DocumentContentPage } from '../model/documents/document-content-page'
|
|
|
|
test.use({
|
|
storageState: PlatformSettingThird
|
|
})
|
|
|
|
test.describe('ISO 13485, 4.2.4 Control of documents ensure that documents of external origin are identified and their distribution controlled', () => {
|
|
test.beforeEach(async ({ page }) => {
|
|
await (await page.goto(`${PlatformURI}/${HomepageURI}`))?.finished()
|
|
})
|
|
|
|
test('TESTS-389. As a non workspace owner, I cannot remove a user from workspace', async ({ page }) => {
|
|
await allure.description(
|
|
'Requirement\nUser is not a part of space members and cannot see or edit any document from that space'
|
|
)
|
|
await allure.tms('TESTS-389', 'https://tracex.hc.engineering/workbench/platform/tracker/TESTS-389')
|
|
await test.step('2. check if non member can kick user from space', async () => {
|
|
const documentContentPage = new DocumentContentPage(page)
|
|
await documentContentPage.clickContacts()
|
|
await documentContentPage.clickEmployee()
|
|
await documentContentPage.selectEmployee('AQ Admin Qara')
|
|
await documentContentPage.clickEmployeeDropdown()
|
|
await documentContentPage.checkIfUserCanKick()
|
|
})
|
|
})
|
|
})
|