From 2682dc487d2ed25923cfbb107818b17f210fd752 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Mon, 24 Feb 2020 13:27:45 +0200 Subject: Verbose some VRF test's steps Issue-ID: Issue-ID: VID-771 Change-Id: I1b8813433da50cf4d4539e83d42cfbc603bc02bb Signed-off-by: Ittay Stern --- .../cypress/integration/iFrames/vrf.e2e.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'vid-webpack-master/cypress') diff --git a/vid-webpack-master/cypress/integration/iFrames/vrf.e2e.ts b/vid-webpack-master/cypress/integration/iFrames/vrf.e2e.ts index 5d0ec4cdd..a589f1c87 100644 --- a/vid-webpack-master/cypress/integration/iFrames/vrf.e2e.ts +++ b/vid-webpack-master/cypress/integration/iFrames/vrf.e2e.ts @@ -142,15 +142,15 @@ describe('Drawing board : VRF', function () { cy.get('#VRF').should('have.length', 1); cy.get('#VRF .icon-browse').click({force: true}).then(() => { cy.getElementByDataTestsId('context-menu-changeAssociations').click(); // click on change associations - cy.getElementByDataTestsId(oldNETWORKDataTestId).get('input').should('be.checked'); // check if selected network is checked. - cy.getElementByDataTestsId('setMembersBtn').click({force: true}).then(() => { // click 'NEXT' (set network) - cy.getElementByDataTestsId(oldVPNDataTestId).get('input').should('be.checked'); // check if selected VPN is checked + cy.log("check if selected network is checked").getElementByDataTestsId(oldNETWORKDataTestId).get('input').should('be.checked'); + cy.log("click 'NEXT' (set network)").getElementByDataTestsId('setMembersBtn').click({force: true}).then(() => { + cy.log("check if selected VPN is checked").getElementByDataTestsId(oldVPNDataTestId).get('input').should('be.checked'); - cy.get(".sdcCheckboxMember[data-tests-id='" + newVPNDataTestId + "'] input").check({force: true}).then(() => { // select other VPN + cy.log("select other VPN").get(".sdcCheckboxMember[data-tests-id='" + newVPNDataTestId + "'] input").check({force: true}).then(() => { cy.getElementByDataTestsId('cancelBtn').click().then(() => { - cy.get(".sdcCheckboxMember[data-tests-id='" + newNETWORKDataTestId + "'] input").check({force: true}).then(() => { // select other VPN + cy.log("select other network").get(".sdcCheckboxMember[data-tests-id='" + newNETWORKDataTestId + "'] input").check({force: true}).then(() => { cy.getElementByDataTestsId('setMembersBtn').click(); - cy.get(".sdcCheckboxMember[data-tests-id='" + newVPNDataTestId + "'] input") + cy.log("VPN selection exists").get(".sdcCheckboxMember[data-tests-id='" + newVPNDataTestId + "'] input"); cy.getElementByDataTestsId('setMembersBtn').click(); checkSelectedRows(newNETWORKDataTestId, newVPNDataTestId); @@ -278,9 +278,9 @@ describe('Drawing board : VRF', function () { function checkSelectedRows(networkFataTestId: string, vpnDataTestId: string) { cy.get('#VRF .icon-browse').click({force: true}).then(() => { cy.getElementByDataTestsId('context-menu-changeAssociations').click(); // click on change associations - cy.getElementByDataTestsId(networkFataTestId).get('input').should('be.checked'); // check if selected network is checked. - cy.getElementByDataTestsId('setMembersBtn').click({force: true}).then(() => { // click 'NEXT' (set network) - cy.getElementByDataTestsId(vpnDataTestId).get('input').should('be.checked'); // check if selected VPN is checked + cy.log("check if selected network is checked").getElementByDataTestsId(networkFataTestId).get('input').should('be.checked'); + cy.log("click 'NEXT' (set network)").getElementByDataTestsId('setMembersBtn').click({force: true}).then(() => { + cy.log("check if selected VPN is checked").getElementByDataTestsId(vpnDataTestId).get('input').should('be.checked'); cy.getElementByDataTestsId('setMembersBtn').click(); cy.getElementByDataTestsId('setMembersBtn').click(); }); -- cgit 1.2.3-korg