查询与Angular 13兼容的apollo-angular及apollo-client版本
Angular 13 兼容的 Apollo 库版本
- apollo-angular:需使用 ^3.0.0 及以上版本,该版本起正式支持 Angular 13
- apollo-client:对应兼容版本为 ^3.5.0 及以上,需与 apollo-angular 版本匹配以避免依赖冲突
翻译后的 Cypress 测试代码
/// <reference types="Cypress" /> import { COMMON } from '../../../helpers/constants'; context('授权 - 违规数据导出器', () => { beforeEach(() => { cy.interceptGQL('swbUserProfile', 'breaches/new-breach-case/user-profile-breach-exporter.json', 200, COMMON); cy.visit('/breaches'); }); describe('违规数据导出', () => { it('点击用户名按钮后应显示下载违规数据链接', () => { cy.getByDataSelector('user-name-button-group').should('可见'); cy.getByDataSelector('user-name-button-group').click(); cy.getByDataSelector('user-name-button-group').contains('下载违规数据'); }); }); });
内容的提问来源于stack exchange,提问作者Meenu Meena
相关产品推荐
相关产品推荐

