test: E2E-conformance Waiting time and Cycle time done.
This commit is contained in:
@@ -55,19 +55,13 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Activity sequence', () => {
|
// it('Activity sequence', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
|
|
||||||
// // select radio Rule Type
|
// // select radio Rule Type
|
||||||
// cy.get('#cyp-conformance-type-radio')
|
// cy.get('#cyp-conformance-type-radio').find('input[value="Activity sequence"]').check({ force: true }).should('be.checked');
|
||||||
// .find('input[value="Activity sequence"]')
|
|
||||||
// .check({ force: true })
|
|
||||||
// .should('be.checked');
|
|
||||||
|
|
||||||
// // select radio Activity Sequence
|
// // select radio Activity Sequence
|
||||||
// cy.get('#cyp-conformance-sequence-radio')
|
// cy.get('#cyp-conformance-sequence-radio')
|
||||||
@@ -82,6 +76,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// cy.contains('p', 'Start')
|
// cy.contains('p', 'Start')
|
||||||
// .next('div')
|
// .next('div')
|
||||||
// .find('input')
|
// .find('input')
|
||||||
|
// .first()
|
||||||
// .check({ force: true })
|
// .check({ force: true })
|
||||||
// .should('be.checked');
|
// .should('be.checked');
|
||||||
// // select radio End
|
// // select radio End
|
||||||
@@ -109,10 +104,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Activity sequence, Sequence, Directly follows', () => {
|
// it('Activity sequence, Sequence, Directly follows', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
@@ -212,10 +204,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Processing time, End to end, All', () => {
|
// it('Processing time, End to end, All', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
@@ -256,10 +245,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Processing time, End to end, Start', () => {
|
// it('Processing time, End to end, Start', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
@@ -315,10 +301,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Processing time, End to end, End', () => {
|
// it('Processing time, End to end, End', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
@@ -374,10 +357,7 @@ describe('Conformance Save', ()=>{
|
|||||||
// it('Processing time, End to end, Start & End', () => {
|
// it('Processing time, End to end, Start & End', () => {
|
||||||
// // enter Map
|
// // enter Map
|
||||||
// cy.url().should('include', 'files');
|
// cy.url().should('include', 'files');
|
||||||
// cy.get('table tr')
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
// .filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
// .filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
// .dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
// cy.wait(2000)
|
// cy.wait(2000)
|
||||||
@@ -435,30 +415,582 @@ describe('Conformance Save', ()=>{
|
|||||||
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
// });
|
// });
|
||||||
|
|
||||||
it('Processing time, Partial, From', () => {
|
// it('Processing time, Partial, From', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Processing time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="From"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio Start
|
||||||
|
// cy.contains('p', 'From')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Processing time, Partial, To', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Processing time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="To"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'To')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Processing time, Partial, From & To', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Processing time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="From & To"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio From & To
|
||||||
|
// cy.contains('p', 'From')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'To')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 2); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Processing time, End to end, All', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Processing time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="End to end"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseq-radio')
|
||||||
|
// .find('input[value="All"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, End to end, Start', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="End to end"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseq-radio')
|
||||||
|
// .find('input[value="Start"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio Start
|
||||||
|
// cy.contains('p', 'Start')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, End to end, End', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="End to end"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseq-radio')
|
||||||
|
// .find('input[value="End"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'End')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, End to end, Start & End', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="End to end"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseq-radio')
|
||||||
|
// .find('input[value="Start & End"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio "Start & End
|
||||||
|
// cy.contains('p', 'Start')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'End')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 2); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, Partial, From', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="From"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio Start
|
||||||
|
// cy.contains('p', 'From')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, Partial, To', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="To"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'To')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .first()
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 1); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
// it('Waiting time, Partial, From & To', () => {
|
||||||
|
// // enter Map
|
||||||
|
// cy.url().should('include', 'files');
|
||||||
|
// cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
|
// cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
|
// cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
|
// cy.wait(2000)
|
||||||
|
|
||||||
|
// // select radio Rule Type
|
||||||
|
// cy.get('#cyp-conformance-type-radio')
|
||||||
|
// .find('input[value="Waiting time"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Process Scope
|
||||||
|
// cy.get('#cyp-conformance-procss-radio')
|
||||||
|
// .find('input[value="Partial"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio Activity Sequence
|
||||||
|
// cy.get('#cyp-conformance-actseqfromto-radio')
|
||||||
|
// .find('input[value="From & To"]')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
|
||||||
|
// // open showbar
|
||||||
|
// cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
|
// // select radio From & To
|
||||||
|
// cy.contains('p', 'From')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // select radio End
|
||||||
|
// cy.contains('p', 'To')
|
||||||
|
// .next('div')
|
||||||
|
// .find('input')
|
||||||
|
// .check({ force: true })
|
||||||
|
// .should('be.checked');
|
||||||
|
// // change time to time range Start
|
||||||
|
// cy.get('#min').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('59', { force: true });
|
||||||
|
// // change time to time range End
|
||||||
|
// cy.get('#max').click();
|
||||||
|
// cy.get('input[data-index="2"]').eq(0).type('0', { force: true });
|
||||||
|
|
||||||
|
// // click apply
|
||||||
|
// cy.contains('button', 'Apply').click();
|
||||||
|
// cy.contains('.v-toast', 'Rule applied');
|
||||||
|
|
||||||
|
// // 是否有顯示選擇項目
|
||||||
|
// cy.get('#cyp-conformance-result-dot')
|
||||||
|
// .find('li') // 在 ul 中找到所有的 li 元素
|
||||||
|
// .should('have.length', 2); // 斷言 li 的數量為 2
|
||||||
|
|
||||||
|
// // save log
|
||||||
|
// cy.contains('button', 'Save').click();
|
||||||
|
// cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
|
// cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
|
// });
|
||||||
|
|
||||||
|
it('Cycle time, Start', () => {
|
||||||
// enter Map
|
// enter Map
|
||||||
cy.url().should('include', 'files');
|
cy.url().should('include', 'files');
|
||||||
cy.get('table tr')
|
cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
.filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
.filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
.dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
cy.wait(2000)
|
cy.wait(2000)
|
||||||
|
|
||||||
// select radio Rule Type
|
// select radio Rule Type
|
||||||
cy.get('#cyp-conformance-type-radio')
|
cy.get('#cyp-conformance-type-radio')
|
||||||
.find('input[value="Processing time"]')
|
.find('input[value="Cycle time"]')
|
||||||
.check({ force: true })
|
|
||||||
.should('be.checked');
|
|
||||||
// select radio Process Scope
|
|
||||||
cy.get('#cyp-conformance-procss-radio')
|
|
||||||
.find('input[value="Partial"]')
|
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
// select radio Activity Sequence
|
// select radio Activity Sequence
|
||||||
cy.get('#cyp-conformance-actseqfromto-radio')
|
cy.get('#cyp-conformance-actseq-radio')
|
||||||
.find('input[value="From"]')
|
.find('input[value="Start"]')
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
|
|
||||||
@@ -466,7 +998,7 @@ describe('Conformance Save', ()=>{
|
|||||||
cy.get('#cyp-showbaricon').click();
|
cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
// select radio Start
|
// select radio Start
|
||||||
cy.contains('p', 'From')
|
cy.contains('p', 'Start')
|
||||||
.next('div')
|
.next('div')
|
||||||
.find('input')
|
.find('input')
|
||||||
.first()
|
.first()
|
||||||
@@ -494,30 +1026,22 @@ describe('Conformance Save', ()=>{
|
|||||||
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Processing time, Partial, To', () => {
|
it('Cycle time,End', () => {
|
||||||
// enter Map
|
// enter Map
|
||||||
cy.url().should('include', 'files');
|
cy.url().should('include', 'files');
|
||||||
cy.get('table tr')
|
cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
.filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
.filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
.dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
cy.wait(2000)
|
cy.wait(2000)
|
||||||
|
|
||||||
// select radio Rule Type
|
// select radio Rule Type
|
||||||
cy.get('#cyp-conformance-type-radio')
|
cy.get('#cyp-conformance-type-radio')
|
||||||
.find('input[value="Processing time"]')
|
.find('input[value="Cycle time"]')
|
||||||
.check({ force: true })
|
|
||||||
.should('be.checked');
|
|
||||||
// select radio Process Scope
|
|
||||||
cy.get('#cyp-conformance-procss-radio')
|
|
||||||
.find('input[value="Partial"]')
|
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
// select radio Activity Sequence
|
// select radio Activity Sequence
|
||||||
cy.get('#cyp-conformance-actseqfromto-radio')
|
cy.get('#cyp-conformance-actseq-radio')
|
||||||
.find('input[value="To"]')
|
.find('input[value="End"]')
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
|
|
||||||
@@ -525,7 +1049,7 @@ describe('Conformance Save', ()=>{
|
|||||||
cy.get('#cyp-showbaricon').click();
|
cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
// select radio End
|
// select radio End
|
||||||
cy.contains('p', 'To')
|
cy.contains('p', 'End')
|
||||||
.next('div')
|
.next('div')
|
||||||
.find('input')
|
.find('input')
|
||||||
.first()
|
.first()
|
||||||
@@ -553,44 +1077,36 @@ describe('Conformance Save', ()=>{
|
|||||||
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('Processing time, Partial, From & To', () => {
|
it('Cycle time,Start & End', () => {
|
||||||
// enter Map
|
// enter Map
|
||||||
cy.url().should('include', 'files');
|
cy.url().should('include', 'files');
|
||||||
cy.get('table tr')
|
cy.get('table tr').filter(':contains("Rule")').filter(':contains("random-conformance-rule-E2Etesting")').dblclick({ force: true });
|
||||||
.filter(':contains("Rule")') // 選擇 type Log
|
|
||||||
.filter(':contains("random-conformance-rule-E2Etesting")') // 選擇 random log 檔
|
|
||||||
.dblclick({ force: true }); // 對選中的 tr 執行雙擊
|
|
||||||
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
cy.contains('h2', 'DISCOVER'); // 斷言在 Discover 頁
|
||||||
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
cy.url().should('include', 'rule/log'); // 斷言在 discover/map/log/:id 路徑
|
||||||
cy.wait(2000)
|
cy.wait(2000)
|
||||||
|
|
||||||
// select radio Rule Type
|
// select radio Rule Type
|
||||||
cy.get('#cyp-conformance-type-radio')
|
cy.get('#cyp-conformance-type-radio')
|
||||||
.find('input[value="Processing time"]')
|
.find('input[value="Cycle time"]')
|
||||||
.check({ force: true })
|
|
||||||
.should('be.checked');
|
|
||||||
// select radio Process Scope
|
|
||||||
cy.get('#cyp-conformance-procss-radio')
|
|
||||||
.find('input[value="Partial"]')
|
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
// select radio Activity Sequence
|
// select radio Activity Sequence
|
||||||
cy.get('#cyp-conformance-actseqfromto-radio')
|
cy.get('#cyp-conformance-actseq-radio')
|
||||||
.find('input[value="From & To"]')
|
.find('input[value="Start & End"]')
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
|
|
||||||
// open showbar
|
// open showbar
|
||||||
cy.get('#cyp-showbaricon').click();
|
cy.get('#cyp-showbaricon').click();
|
||||||
|
|
||||||
// select radio From & To
|
// select radio "Start & End
|
||||||
cy.contains('p', 'From')
|
cy.contains('p', 'Start')
|
||||||
.next('div')
|
.next('div')
|
||||||
.find('input')
|
.find('input')
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
.should('be.checked');
|
.should('be.checked');
|
||||||
// select radio End
|
// select radio End
|
||||||
cy.contains('p', 'To')
|
cy.contains('p', 'End')
|
||||||
.next('div')
|
.next('div')
|
||||||
.find('input')
|
.find('input')
|
||||||
.check({ force: true })
|
.check({ force: true })
|
||||||
@@ -616,6 +1132,4 @@ describe('Conformance Save', ()=>{
|
|||||||
cy.contains('.swal2-title', 'SAVE COMPLETE');
|
cy.contains('.swal2-title', 'SAVE COMPLETE');
|
||||||
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
cy.contains('#swal2-html-container', 'random-conformance-rule-E2Etesting');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user