Skip to content
Snippets Groups Projects
Commit 30d1b3c3 authored by Lehtinen Teemu's avatar Lehtinen Teemu
Browse files

Fix click_button test

parent 5681c653
No related branches found
No related tags found
No related merge requests found
......@@ -40,8 +40,8 @@ describe('Content module acos-webdev-inspector', () => {
describe('Exercise click_for_points', () => {
it('exercise page should open', () => {
browser.url('/html/webdev/webdev-inspector/fix_typo');
browser.waitUntil(() => $('.instructions').getText().length > 0, 4000, 'expected instructions to appear');
browser.url('/html/webdev/webdev-inspector/click_for_points');
browser.waitUntil(() => $('.exercise').getHTML(false).length > 0, 4000, 'expected exercise to appear');
});
it('should start with zero grade', () => {
......@@ -51,7 +51,7 @@ describe('Content module acos-webdev-inspector', () => {
it('should include button and click it', () => {
let button = browser.$$('.exercise button');
button.should.have.lengthOf(1);
button.click();
button[0].click();
browser.waitUntil(() => $$('.explosion').length == 0, 4000, 'expected explosion effect to pass');
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment