mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
Merge pull request #44449 from rhcs-dashboard/api-docs-e2e-test
mgr/dashboard: add test coverage for API docs (SwaggerUI) Reviewed-by: Avan Thakkar <athakkar@redhat.com> Reviewed-by: Nizamudeen A <nia@redhat.com> Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
This commit is contained in:
commit
74cd6245b8
@ -0,0 +1,15 @@
|
||||
import { ApiDocsPageHelper } from 'cypress/integration/ui/api-docs.po';
|
||||
|
||||
describe('Api Docs Page', () => {
|
||||
const apiDocs = new ApiDocsPageHelper();
|
||||
|
||||
beforeEach(() => {
|
||||
cy.login();
|
||||
Cypress.Cookies.preserveOnce('token');
|
||||
apiDocs.navigateTo();
|
||||
});
|
||||
|
||||
it('should show the API Docs description', () => {
|
||||
cy.get('.renderedMarkdown').first().contains('This is the official Ceph REST API');
|
||||
});
|
||||
});
|
@ -0,0 +1,5 @@
|
||||
import { PageHelper } from '../page-helper.po';
|
||||
|
||||
export class ApiDocsPageHelper extends PageHelper {
|
||||
pages = { index: { url: '#/api-docs', id: 'cd-api-docs' } };
|
||||
}
|
Loading…
Reference in New Issue
Block a user