Skip to content

Instantly share code, notes, and snippets.

View kobvel's full-sized avatar

Mikki Kobvel kobvel

View GitHub Profile
import { Routes } from '@angular/router';
import { ProfileComponent } from './profile-list';
export const routes: Routes = [
{ path: 'profile', component: ProfileComponent }
];
describe('My First Test', function() {
it("clicking 'root' shows the right headings", function() {
cy.visit('https://example.cypress.io')
cy.contains('root').click()
// Should be on a new URL which includes '/commands/querying'
cy.url().should('include', '/commands/querying')
// Should find the main header "Querying"