Skip to content

Commit

Permalink
UI Test : add extra assertion and tc id
Browse files Browse the repository at this point in the history
  • Loading branch information
BathiyaL authored and madushadhanushka committed Nov 10, 2022
1 parent ee53329 commit 24c90f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@

import Utils from "@support/utils";

describe("creating document", () => {
describe("publisher-012-00 : Creating API document", () => {
const { publisher, password, } = Utils.getUserInfo();

Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
before(function() {
cy.loginToPublisher(publisher, password);
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ const genApiName = 'api-gendoc-rest';
const documentName = 'api_document';
const documentSummary = 'api document summery';

describe("View generated document for rest apis", () => {
describe("publisher-012-01 :View generated document for rest apis", () => {
const { publisher, password, } = Utils.getUserInfo();
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
before(function() {
cy.loginToPublisher(publisher, password);
})
Expand Down Expand Up @@ -61,6 +64,7 @@ describe("View generated document for rest apis", () => {
cy.get('#left-menu-documents').click();
cy.get('#apim_elements').should('be.visible');
cy.get('#document-autocomplete').should('have.value', 'Default');
cy.get('h1[class*="sl-text-"]').contains(genApiName).should('be.visible');
// Test is done. Now delete the api
Utils.deleteAPI(genApiId);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ const genApiName = 'api-gendoc-other';
const documentName = 'api_document';
const documentSummary = 'api document summery';

describe("View generated document for graphql apis", () => {
describe("publisher-012-02 :View generated document for graphql apis", () => {
const { publisher, password, } = Utils.getUserInfo();
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
before(function() {
cy.loginToPublisher(publisher, password);
})
Expand Down

0 comments on commit 24c90f5

Please sign in to comment.