diff --git a/dev/doc-import-tool/src/import.ts b/dev/doc-import-tool/src/import.ts index c3e73ab074..0db1d4d305 100644 --- a/dev/doc-import-tool/src/import.ts +++ b/dev/doc-import-tool/src/import.ts @@ -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, diff --git a/models/controlled-documents/src/migration.ts b/models/controlled-documents/src/migration.ts index b0f80703c6..9764a6dcbb 100644 --- a/models/controlled-documents/src/migration.ts +++ b/models/controlled-documents/src/migration.ts @@ -145,8 +145,8 @@ async function createProductChangeControlTemplate (tx: TxOperations): Promise, diff --git a/plugins/controlled-documents-resources/src/components/create-doc/QmsTemplateWizard.svelte b/plugins/controlled-documents-resources/src/components/create-doc/QmsTemplateWizard.svelte index 5f21e1b937..5df76d5884 100644 --- a/plugins/controlled-documents-resources/src/components/create-doc/QmsTemplateWizard.svelte +++ b/plugins/controlled-documents-resources/src/components/create-doc/QmsTemplateWizard.svelte @@ -98,8 +98,8 @@ code: '', docPrefix: '', labels: 0, - major: 0, - minor: 1, + major: 1, + minor: 0, commentSequence: 0, seqNumber: 0, category: undefined, diff --git a/qms-tests/sanity/tests/documents/ES-20.spec.ts b/qms-tests/sanity/tests/documents/ES-20.spec.ts index 2793abe4c0..45acf93c2d 100644 --- a/qms-tests/sanity/tests/documents/ES-20.spec.ts +++ b/qms-tests/sanity/tests/documents/ES-20.spec.ts @@ -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) diff --git a/qms-tests/sanity/tests/documents/ES-50.spec.ts b/qms-tests/sanity/tests/documents/ES-50.spec.ts index d331c5e26d..88df84d891 100644 --- a/qms-tests/sanity/tests/documents/ES-50.spec.ts +++ b/qms-tests/sanity/tests/documents/ES-50.spec.ts @@ -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' diff --git a/qms-tests/sanity/tests/documents/REQ-03.spec.ts b/qms-tests/sanity/tests/documents/REQ-03.spec.ts index dce0d5329d..03986ca63d 100644 --- a/qms-tests/sanity/tests/documents/REQ-03.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-03.spec.ts @@ -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 diff --git a/qms-tests/sanity/tests/documents/REQ-04-01.spec.ts b/qms-tests/sanity/tests/documents/REQ-04-01.spec.ts index b2dc5c36dd..ae69ca1906 100644 --- a/qms-tests/sanity/tests/documents/REQ-04-01.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-04-01.spec.ts @@ -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() diff --git a/qms-tests/sanity/tests/documents/REQ-04.spec.ts b/qms-tests/sanity/tests/documents/REQ-04.spec.ts index 1de2a4511d..f867d713e1 100644 --- a/qms-tests/sanity/tests/documents/REQ-04.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-04.spec.ts @@ -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) diff --git a/qms-tests/sanity/tests/documents/REQ-05-1.spec.ts b/qms-tests/sanity/tests/documents/REQ-05-1.spec.ts index b40d847eae..b5946ec79a 100644 --- a/qms-tests/sanity/tests/documents/REQ-05-1.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-05-1.spec.ts @@ -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' diff --git a/qms-tests/sanity/tests/documents/REQ-10.spec.ts b/qms-tests/sanity/tests/documents/REQ-10.spec.ts index 6baf91493e..7b649c71a3 100644 --- a/qms-tests/sanity/tests/documents/REQ-10.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-10.spec.ts @@ -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) diff --git a/qms-tests/sanity/tests/documents/REQ-14.spec.ts b/qms-tests/sanity/tests/documents/REQ-14.spec.ts index ab44785598..05ef8f2c7b 100644 --- a/qms-tests/sanity/tests/documents/REQ-14.spec.ts +++ b/qms-tests/sanity/tests/documents/REQ-14.spec.ts @@ -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) }) diff --git a/qms-tests/sanity/tests/documents/categories.spec.ts b/qms-tests/sanity/tests/documents/categories.spec.ts index 124d317509..a3bad9a821 100644 --- a/qms-tests/sanity/tests/documents/categories.spec.ts +++ b/qms-tests/sanity/tests/documents/categories.spec.ts @@ -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' diff --git a/qms-tests/sanity/tests/documents/documents.spec.ts b/qms-tests/sanity/tests/documents/documents.spec.ts index d8712e2e1a..2b38a0c68f 100644 --- a/qms-tests/sanity/tests/documents/documents.spec.ts +++ b/qms-tests/sanity/tests/documents/documents.spec.ts @@ -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) diff --git a/qms-tests/sanity/tests/documents/templates.spec.ts b/qms-tests/sanity/tests/documents/templates.spec.ts index 7bad20a331..be3cf4cf99 100644 --- a/qms-tests/sanity/tests/documents/templates.spec.ts +++ b/qms-tests/sanity/tests/documents/templates.spec.ts @@ -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' diff --git a/qms-tests/sanity/tests/model/documents/document-content-page.ts b/qms-tests/sanity/tests/model/documents/document-content-page.ts index 630b210360..a74e33bdbb 100644 --- a/qms-tests/sanity/tests/model/documents/document-content-page.ts +++ b/qms-tests/sanity/tests/model/documents/document-content-page.ts @@ -679,7 +679,7 @@ export class DocumentContentPage extends DocumentCommonPage { async checkIfHistoryVersionExists (description: string): Promise { 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 {