aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/cypress/integration
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-02-24 13:27:45 +0200
committerIttay Stern <ittay.stern@att.com>2020-02-24 12:39:09 +0000
commit2682dc487d2ed25923cfbb107818b17f210fd752 (patch)
tree742023f8b291791fca3458e1c4ef97819672d632 /vid-webpack-master/cypress/integration
parent00c4f979e1117d030efe1d3fb0a9e37c27a1cf64 (diff)
Verbose some VRF test's steps
Issue-ID: Issue-ID: VID-771 Change-Id: I1b8813433da50cf4d4539e83d42cfbc603bc02bb Signed-off-by: Ittay Stern <ittay.stern@att.com>
Diffstat (limited to 'vid-webpack-master/cypress/integration')
-rw-r--r--vid-webpack-master/cypress/integration/iFrames/vrf.e2e.ts18
1 files changed, 9 insertions, 9 deletions
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();
});