import { NG43ATDDSelectPage } from './app.po';
describe('NG43ATDDSelect', () => {
let page: NG43ATDDSelectPage;
beforeEach(() => {
page = new NG43ATDDSelectPage();
});
it(`should have 3 options in select`, () => {
page.navigateTo();
expect(page.getSelectCount()).toBe(3);
it(`should show '0' when selecting 'AWS' `, () => {
page.select('AWS');
expect(page.getSelectedId()).toBe('0');
Overview
Version
User Story
驗收測試 (紅燈)
import { NG43ATDDSelectPage } from './app.po';
describe('NG43ATDDSelect', () => {
let page: NG43ATDDSelectPage;
beforeEach(() => {
page = new NG43ATDDSelectPage();
});
it(`should have 3 options in select`, () => {
page.navigateTo();
expect(page.getSelectCount()).toBe(3);
});
it(`should show '0' when selecting 'AWS' `, () => {
page.navigateTo();
page.select('AWS');
expect(page.getSelectedId()).toBe('0');
});