Created
December 12, 2018 18:11
-
-
Save artberri/a3157d97f815b74551a00d009d4e81c8 to your computer and use it in GitHub Desktop.
Twitter discussion https://twitter.com/itortv/status/1072889316391694337
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Temperature, with no alarms', () => { | |
it('takes temperature with manual input', () => { | |
loginPage.visit(); | |
const menuPage = loginPage.doLogin(TEST_USER, CORRECT_PASSWORD); | |
const measurementsPage = menuPage.chooseMeasurements(); | |
const temperaturePage = measurementsPage.chooseTemperature(); | |
temperaturePage.enterMeasurement(36); | |
temperaturePage.expect().toSayPerfect(); | |
}); | |
}); | |
describe('Weight, with no alarms', () => { | |
it('takes weight with manual input', () => { | |
loginPage.visit(); | |
const menuPage = loginPage.doLogin(TEST_USER, CORRECT_PASSWORD); | |
const measurementsPage = menuPage.chooseMeasurements(); | |
const weightPage = measurementsPage.chooseWeight(); | |
weightPage.enterMeasurement(70.2); | |
weightPage.expect().toSayPerfect(); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Temperature page', () => { | |
let temperaturePage; | |
beforeEach(() => { | |
temperaturePage = TestHelperNavigator.navigateToTemperaturePage(); | |
}); | |
describe('Temperature, with no alarms', () => { | |
it('takes temperature with manual input', () => { | |
temperaturePage.enterMeasurement(36); | |
temperaturePage.expect().toSayPerfect(); | |
}); | |
}); | |
// Other temperature page tests | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Weight page', () => { | |
let weightPage; | |
beforeEach(() => { | |
weightPage = TestHelperNavigator.navigateToWeightPage(); | |
}); | |
describe('Weight, with no alarms', () => { | |
it('takes weight with manual input', () => { | |
weightPage.enterMeasurement(70.2); | |
weightPage.expect().toSayPerfect(); | |
}); | |
}); | |
// Other weight page tests | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment