mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Place the version in the info menu and move both the info and gear buttons to the right-hand side of the toolbar. PR Close #62684
31 lines
872 B
JavaScript
31 lines
872 B
JavaScript
/**
|
|
* @license
|
|
* Copyright Google LLC All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.dev/license
|
|
*/
|
|
|
|
function showComments() {
|
|
cy.get('.main-toolbar > .settings > button:last-child').click();
|
|
cy.get('.cdk-overlay-container mat-slide-toggle + span:contains("Show comment nodes")').click();
|
|
}
|
|
|
|
describe('Comment nodes', () => {
|
|
beforeEach(() => {
|
|
cy.visit('/');
|
|
});
|
|
|
|
it('should not find any comment nodes by default', () => {
|
|
const nodes = cy.$$('ng-tree-node:contains("#comment")');
|
|
expect(nodes.length).to.eql(0);
|
|
});
|
|
|
|
it('should find comment nodes when the setting is enabled', () => {
|
|
showComments();
|
|
cy.get('.tree-wrapper')
|
|
.find('ng-tree-node:contains("#comment")')
|
|
.its('length')
|
|
.should('not.eq', 0);
|
|
});
|
|
});
|