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 login
http://localhost:8080/web/login
View portfolio
http://localhost:8080/web/index
View uri
https://github.com/ksakae1216/web-sample.git
View insert data
INSERT INTO test_mysql.login ( loginId, password ) VALUES ('testlogin','testpass');
INSERT INTO test_mysql.lessonlist ( userId, userFirstName, userLastName, lesson1st, lesson2nd ) VALUES ('001','taro','yamada','Java','Angular');
INSERT INTO test_mysql.lessonlist ( userId, userFirstName, userLastName, lesson1st, lesson2nd ) VALUES ('002','jiro','sato','Go','PHP');
INSERT INTO test_mysql.language ( language, information ) VALUES ('Angular','Angularの情報です*********');
INSERT INTO test_mysql.language ( language, information ) VALUES ('Go','Goの情報です*********');
INSERT INTO test_mysql.language ( language, information ) VALUES ('Java','Javaの情報です*********');
INSERT INTO test_mysql.language ( language, information ) VALUES ('PHP','PHPの情報です*********');
INSERT INTO test_mysql.language ( language, information ) VALUES ('Python','Pythonの情報です*********');
View create table
-- login
CREATE TABLE test_mysql.login
(
loginId VARCHAR(10) NOT NULL,
password VARCHAR(20) NOT NULL,
CONSTRAINT PRIMARY KEY (loginId)
);
-- lessonlist
CREATE TABLE test_mysql.lessonlist
View clone
git clone https://github.com/ksakae1216/web-sample.git
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');
You can’t perform that action at this time.