Project

General

Profile

Actions

Research & Development #11494

open

Research & Development #11446: Automation for DGDP

updated Code For Automation DGDP

Added by Azhar Alam about 1 year ago.

Status:
To Do
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Start date:
05/14/2024
Due date:
% Done:

0%

Estimated time:
Ready for testing:
No

Description

import login from '../support/commands'
describe('test new',()=>{

beforeEach(() => {
// Your login, navigation, and form filling logic from the "test" block
cy.login('basir', 'Sqa@12345');
cy.navigate();
cy.clickAdd();
// Other commands from the "test" block if needed
});
// executes once prior all tests in it block
it("test",()=>{
// cy.login('basir','Sqa@12345')
// cy.navigate()
// cy.clickAdd()
//cy.clickAddSupplierEnlistment();
// cy.reload()
cy.wait(5000)
// default select অন্যান্য
// uncomment for select অবঃ সামরিক সদস্য
//cy.get('.css-1kfhhld > .MuiBox-root > .MuiFormGroup-root > :nth-child(2) > .MuiButtonBase-root > .PrivateSwitchBase-input').click()
/* Image Upload */
cy.get(':nth-child(1) > .fileUploadBox > .fileNameContainer > .addFileBox > .uploadFileInput')
.selectFile('cypress\\fixtures\\199353.jpg',{force:true})
cy.wait(2000)
//১। পুরা নাম (বাংলায়): *
cy.get('input[name="preApplicantNameBn"]').type('মোল্লা বছির উদ্দিন')
cy.wait(500)
// পিতা
cy.get('.css-1vq3geb > .MuiBox-root > .MuiFormGroup-root > :nth-child(1) > .MuiButtonBase-root > .PrivateSwitchBase-input').click()
cy.wait(500)
//স্বামী
/*cy.get('.css-1vq3geb > .MuiBox-root > .MuiFormGroup-root > :nth-child(2) > .MuiButtonBase-root > .PrivateSwitchBase-input').click()
//২। স্বামীর নামঃ 
cy.get('input[name="husbandNameBn"]').type('স্বামী')
/
//২। পিতার নামঃ *
cy.get('input[name="fathersNameBn"]').type('মোল্লা কাসির উদ্দিন')
})
it('second test',()=>{
// cy.login('basir','Sqa@12345')
// cy.navigate()
// cy.clickAdd()
cy.second()
})
})
// it('call on second',()=>{
// //cy.navigateToSupplierEnlistment()
// })

No data to display

Actions

Also available in: Atom PDF