Skip to content

Instantly share code, notes, and snippets.

View act
brew install nektos/tap/act
View login-spec.ts
import * as loginPo from '../support/po/login.po';
describe('Login', () => {
beforeEach(() => {
loginPo.navigatoTo();
loginPo.valid();
});
it('display login', () => {
View login.po.ts
import * as common from './common.po';
export const navigatoTo = () => cy.visit(common.baseUrl);
export const getContent = () => cy.get('.js-content-login');
export const valid = () => {
getContent().should('be.visible');
};
View login.po.ts
import * as common from './common.po';
export const navigatoTo = () => cy.visit(common.baseUrl);
export const getContent = () => cy.get('.js-content-login');
export const valid = () => {
getContent().should('be.visible');
};
View install
npm install --save-dev cypress-image-snapshot
View login
http://localhost:8080/web/login
View portfolio
http://localhost:8080/web/index
View uri
https://github.com/ksakae1216/web-sample.git