kre-form
Version:
本项目由 Angular8+ 编写的表单设计器和表单应用,所有的配置都是 JSON 结构体组成,PC 端是基于 ANT 组件库封装
54 lines (49 loc) • 1.51 kB
text/typescript
/// <reference types="cypress" />
describe('Server side rendering', () => {
it('should render material ui', () => {
cy.request('/material')
.its('body')
.should('contain', 'input label')
.and('contain', 'textarea label')
.and('contain', 'radio label')
.and('contain', 'checkbox label')
.and('contain', 'multicheckbox label')
.and('contain', 'select label')
.and('contain', 'toggle label')
.and('contain', 'native-select label')
.and('contain', 'slider label')
.and('contain', 'datepicker label')
;
});
it('should render bootstrap ui', () => {
cy.request('/bootstrap')
.its('body')
.should('contain', 'input label')
.and('contain', 'textarea label')
.and('contain', 'radio label')
.and('contain', 'checkbox label')
.and('contain', 'multicheckbox label')
.and('contain', 'select label')
;
});
it('should render kendo ui', () => {
cy.request('/kendo')
.its('body')
.should('contain', 'input label')
.and('contain', 'textarea label')
.and('contain', 'radio label')
.and('contain', 'checkbox label')
.and('contain', 'select label')
;
});
it('should render primeng ui', () => {
cy.request('/kendo')
.its('body')
.should('contain', 'input label')
.and('contain', 'textarea label')
.and('contain', 'radio label')
.and('contain', 'checkbox label')
.and('contain', 'select label')
;
});
});