EQMS-1510: QMS documents now start at version 1.0 instead of 0.1 (#8669)

Signed-off-by: Victor Ilyushchenko <alt13ri@gmail.com>
This commit is contained in:
Victor Ilyushchenko
2025-04-24 13:20:25 +04:00
committed by GitHub
parent 43264cf996
commit fb9254535f
17 changed files with 122 additions and 122 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ async function createDocument (
prefix,
code: oldId,
seqNumber: 0,
major: 0,
minor: 1,
major: 1,
minor: 0,
commentSequence: 0,
template: templateId,
state: DocumentState.Draft,
+2 -2
View File
@@ -145,8 +145,8 @@ async function createProductChangeControlTemplate (tx: TxOperations): Promise<vo
coAuthors: [],
code: `TMPL-${seq.sequence + 1}`,
seqNumber: 0,
major: 0,
minor: 1,
major: 1,
minor: 0,
state: DocumentState.Effective,
commentSequence: 0,
content: null
@@ -54,8 +54,8 @@
code: '',
prefix: '',
labels: 0,
major: 0,
minor: 1,
major: 1,
minor: 0,
commentSequence: 0,
author: currentUser,
owner: currentUser,
@@ -103,8 +103,8 @@
code: '',
title: '',
labels: 0,
major: 0,
minor: 1,
major: 1,
minor: 0,
seqNumber: 0,
commentSequence: 0,
category: '' as Ref<DocumentCategory>,
@@ -98,8 +98,8 @@
code: '',
docPrefix: '',
labels: 0,
major: 0,
minor: 1,
major: 1,
minor: 0,
commentSequence: 0,
seqNumber: 0,
category: undefined,
@@ -39,7 +39,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -72,7 +72,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -50,7 +50,7 @@ test.describe('QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -90,7 +90,7 @@ test.describe('QMS. PDF Download and Preview', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -135,7 +135,7 @@ test.describe('QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -199,7 +199,7 @@ test.describe('QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -253,7 +253,7 @@ test.describe('QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
+50 -50
View File
@@ -47,7 +47,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -63,7 +63,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.IN_APPROVAL,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
})
@@ -80,7 +80,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPageSecond.checkCurrentRights(DocumentRights.VIEWING)
@@ -92,7 +92,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -104,55 +104,41 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
await documentHistoryPage.checkHistoryEventExist('New document creation')
await attachScreenshot('TESTS-325_check_history_tab.png', page)
})
await test.step('6. Send for Approval v0.2', async () => {
await test.step('6. Send for Approval v1.1', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v0.2',
'Reason 0.2',
'impact 0.2',
'v0.1',
'v0.2',
'v1.1',
'Reason 1.1',
'impact 1.1',
'v1.0',
'v1.1',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('7. Send for Approval minor v0.3', async () => {
await test.step('7. Send for Approval minor v1.2', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v0.3',
'Reason 0.3',
'impact 0.3',
'v0.2',
'v0.3',
'v1.2',
'Reason 1.2',
'impact 1.2',
'v1.1',
'v1.2',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('8. Send for Approval major v1.0', async () => {
await documentContentPage.sendForApproval(
'Major',
'v1.0',
'Reason 1.0',
'impact 1.0',
'v0.3',
'v1.0',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('9. Send for Approval major v2.0', async () => {
await test.step('8. Send for Approval major v2.0', async () => {
await documentContentPage.sendForApproval(
'Major',
'v2.0',
'Reason 2.0',
'impact 2.0',
'v1.0',
'v1.2',
'v2.0',
userSecondPage,
completeDocument,
@@ -160,42 +146,56 @@ test.describe('ISO 13485, 4.2.4 Control of documents, ensure that the current re
)
})
await test.step('10. Send for Approval minor v2.1', async () => {
await test.step('9. Send for Approval major v3.0', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v2.1',
'Reason 2.1',
'impact 2.1',
'Major',
'v3.0',
'Reason 3.0',
'impact 3.0',
'v2.0',
'v2.1',
'v3.0',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('11. Send for Approval minor v2.2', async () => {
await test.step('10. Send for Approval minor v3.1', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v2.2',
'Reason 2.2',
'impact 2.2',
'v2.1',
'v2.2',
'v3.1',
'Reason 3.1',
'impact 3.1',
'v3.0',
'v3.1',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('12. Send for Approval minor v2.3', async () => {
await test.step('11. Send for Approval minor v3.2', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v2.3',
'Reason 2.3',
'impact 2.3',
'v2.2',
'v2.3',
'v3.2',
'Reason 3.2',
'impact 3.2',
'v3.1',
'v3.2',
userSecondPage,
completeDocument,
documentDetails
)
})
await test.step('12. Send for Approval minor v3.3', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v3.3',
'Reason 3.3',
'impact 3.3',
'v3.2',
'v3.3',
userSecondPage,
completeDocument,
documentDetails
@@ -37,7 +37,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -65,7 +65,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -94,7 +94,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -122,7 +122,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -162,7 +162,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -185,7 +185,7 @@ test.describe('@PDF. QMS. PDF Download and Preview', () => {
await test.step('4. Check the document and status', async () => {
await documentContentPage.checkDocumentStatus(DocumentStatus.EFFECTIVE)
await documentContentPage.checkDocument({ ...documentDetails, status: DocumentStatus.EFFECTIVE, version: 'v0.1' })
await documentContentPage.checkDocument({ ...documentDetails, status: DocumentStatus.EFFECTIVE, version: 'v1.0' })
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
await documentContentPage.openApprovals()
@@ -44,7 +44,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -63,7 +63,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.IN_APPROVAL,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
})
@@ -80,7 +80,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPageSecond.checkCurrentRights(DocumentRights.VIEWING)
@@ -113,7 +113,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -131,7 +131,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.IN_APPROVAL,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
})
@@ -148,7 +148,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPageSecond.checkCurrentRights(DocumentRights.VIEWING)
@@ -74,7 +74,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPage.checkDocument({
type: 'N/A',
category: newTemplate.category ?? '',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -181,7 +181,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents', () => {
await documentContentPage.checkDocument({
type: 'N/A',
category: newTemplate.category ?? '',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.EFFECTIVE,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -69,7 +69,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents ensure that documents of ex
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Dirak Kainin',
author: 'Dirak Kainin'
@@ -77,7 +77,7 @@ test.describe('ISO 13485, 4.2.4 Control of documents ensure that documents of ex
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.DRAFT,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.clickLeaveFolder(folderName)
await attachScreenshot('TESTS-347_manager_document_created.png', page)
+13 -13
View File
@@ -44,7 +44,7 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -60,7 +60,7 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.IN_APPROVAL,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
})
@@ -77,7 +77,7 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPageSecond.checkCurrentRights(DocumentRights.VIEWING)
@@ -89,7 +89,7 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -101,14 +101,14 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
await documentHistoryPage.checkHistoryEventExist('New document creation')
await attachScreenshot('TESTS-384_check_history_tab.png', page)
})
await test.step('6. Send for Approval v0.2', async () => {
await test.step('6. Send for Approval v1.1', async () => {
await documentContentPage.sendForApproval(
'Minor',
'v0.2',
'Reason 0.2',
'impact 0.2',
'v0.1',
'v0.2',
'v1.1',
'Reason 1.1',
'impact 1.1',
'v1.0',
'v1.1',
userSecondPage,
completeDocument,
documentDetails
@@ -116,12 +116,12 @@ test.describe('QMS. Documents tests for Control of documents ISO 13485, 4.2.4 FS
})
await test.step('7. Check archived status', async () => {
const documentContentPageSecond = new DocumentContentPage(userSecondPage)
await documentContentPage.clickPreviousVersionHeader(userSecondPage, completeDocument, 'v0.2')
await documentContentPage.clickPreviousVersionHeader(userSecondPage, completeDocument, 'v0.1')
await documentContentPage.clickPreviousVersionHeader(userSecondPage, completeDocument, 'v1.1')
await documentContentPage.clickPreviousVersionHeader(userSecondPage, completeDocument, 'v1.0')
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.ARCHIVED,
version: 'v0.1'
version: 'v1.0'
})
await attachScreenshot('TESTS-384_archived_status.png', page)
})
@@ -142,7 +142,7 @@ test.describe('QMS. Categories tests', () => {
await documentContentPage.checkDocument({
type: 'N/A',
category: canNotDeleteCategoryTemplate.category ?? '',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -144,7 +144,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -179,7 +179,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -218,7 +218,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -257,7 +257,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -320,7 +320,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.DRAFT,
version: 'v0.1'
version: 'v1.0'
})
await attachScreenshot('TESTS-136_check_edit_document_flow.png', page)
})
@@ -337,7 +337,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -365,7 +365,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -388,7 +388,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -436,7 +436,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -505,7 +505,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.DRAFT,
version: 'v0.1'
version: 'v1.0'
})
await attachScreenshot('TESTS-139_check_document.png', page)
})
@@ -522,7 +522,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -567,7 +567,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.DRAFT,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.replaceContent(updateContentFirst)
@@ -592,7 +592,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -697,7 +697,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -728,7 +728,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPageQara.checkDocument({
...documentDetails,
owner: newDocumentOwner,
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.EFFECTIVE
})
await attachScreenshot('TESTS-155_change_document_owner.png', page)
@@ -738,7 +738,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
owner: newDocumentOwner,
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.EFFECTIVE
})
await expect(documentContentPage.buttonDraftNewVersion).toBeVisible({ visible: false })
@@ -757,7 +757,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPageSecond.checkDocument({
...documentDetails,
owner: newDocumentOwner,
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.EFFECTIVE
})
await attachScreenshot('TESTS-155_new_owner.png', page)
@@ -775,7 +775,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -833,7 +833,7 @@ test.describe('QMS. Documents tests', () => {
const documentDetails: DocumentDetails = {
type: 'HR',
category: 'Human Resources',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -921,7 +921,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.DRAFT,
version: 'v0.1'
version: 'v1.0'
})
await attachScreenshot('TESTS-206_check_document.png', page)
})
@@ -955,7 +955,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.IN_APPROVAL,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
})
@@ -972,7 +972,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPageSecond.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPageSecond.checkCurrentRights(DocumentRights.VIEWING)
@@ -984,7 +984,7 @@ test.describe('QMS. Documents tests', () => {
await documentContentPage.checkDocument({
...documentDetails,
status: DocumentStatus.EFFECTIVE,
version: 'v0.1'
version: 'v1.0'
})
await documentContentPage.checkCurrentRights(DocumentRights.VIEWING)
@@ -48,7 +48,7 @@ test.describe('QMS. Templates tests', () => {
await documentContentPage.checkDocument({
type: 'N/A',
category: newTemplate.category ?? '',
version: 'v0.1',
version: 'v1.0',
status: DocumentStatus.DRAFT,
owner: 'Appleseed John',
author: 'Appleseed John'
@@ -679,7 +679,7 @@ export class DocumentContentPage extends DocumentCommonPage {
async checkIfHistoryVersionExists (description: string): Promise<void> {
await this.page.waitForTimeout(200)
await expect(this.page.getByText(description)).toBeVisible()
await expect(this.page.getByText('v0.1', { exact: true })).toBeVisible()
await expect(this.page.getByText('v1.0', { exact: true })).toBeVisible()
}
async checkDocumentStatus (status: DocumentStatus): Promise<void> {