Skip to content

Instantly share code, notes, and snippets.

ksakae1216

Block or report user

Report or block ksakae1216

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View app.spec.ts
import { getAddTodoButton, getTodos } from '../support/app.po';
describe('TodoApps', () => {
beforeEach(() => cy.visit('/'));
it('should display todos', () => {
getTodos().should(t => expect(t.length).equal(2));
getAddTodoButton().click();
getTodos().should(t => expect(t.length).equal(3));
});
View app.po.ts
export const getTodos = () => cy.get('li.todo');
export const getAddTodoButton = () => cy.get('button#add-todo');
View app.spec.ts
import { getGreeting } from '../support/app.po';
describe('todos', () => {
beforeEach(() => cy.visit('/'));
it('should display welcome message', () => {
getGreeting().contains('Welcome to todos!');
});
});
View app.po.ts
export const getGreeting = () => cy.get('h1');
View app3
ng add @nrwl/angular --defaults
View app2
ng g @nrwl/angular:application todos
View application
ng add @nrwl/angular --defaults
ng g @nrwl/angular:application todos
View create
npx --ignore-existing create-nx-workspace myorg
You can’t perform that action at this time.