Skip to content
Permalink
Browse files

Disable wait for Angular around all browser scripts

  • Loading branch information
bkimminich committed Dec 17, 2019
1 parent 044705c commit a06b99c0d43fa618e2178d9ee303c8ccb0fa1e1b
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/e2e/basketSpec.js
@@ -66,11 +66,18 @@ describe('/#/basket', () => {
protractor.beforeEach.login({ email: 'jim@' + config.get('application.domain'), password: 'ncc-1701' })
describe('challenge "manipulateClock"', () => {
it('should be possible to enter WMNSDY2019 coupon', () => {
browser.waitForAngularEnabled(false)
browser.executeScript('window.localStorage.couponPanelExpanded = false;')
browser.driver.sleep(1000)
browser.waitForAngularEnabled(true)

browser.get('/#/payment/shop')

browser.waitForAngularEnabled(false)
browser.executeScript('event = new Date("March 08, 2019 00:00:00"); Date = function(Date){return function() {date = event; return date; }}(Date);')
browser.driver.sleep(1000)
browser.waitForAngularEnabled(true)

element(by.id('collapseCouponElement')).click()
browser.wait(protractor.ExpectedConditions.presenceOf($('#coupon')), 5000, 'Coupon textfield not present.') // eslint-disable-line no-undef

0 comments on commit a06b99c

Please sign in to comment.
You can’t perform that action at this time.