Posts

Showing posts from February 17, 2019

Run several small test within one 'it' in E2E test using Protractor

Image
0 I am new to JavaScript and am working on a E2E test for a single-page web application in Angular2. Basically, there are lots of clickable tags(not redirected to other pages but has some css effect when clicking) on the page, with some logic between them. What I am trying to do is, { randomly click a tag, check to see the the response from the page is correct or not (need to grab many components from the web to do this), then unclick it }. So, I set two const as totalRound and ITER, which I would load the webpage totalRound times, then within each loading page, I would randomly choose and click button ITER times. My code structure is like: let totalRound: number = 10; let ITER: number = 100; describe('XX Test', () => { let page: AppPage; beforeEach(() => { page = new AppP

How does commander damage interact with cards that prevent you from losing the game?

Image
2 If you have take the last 21 commander damage from a single commander and play a card that prevents you from losing, what happens when that card stops protecting you? Example being Angel's Grace or Stunning Reversal. magic-the-gathering share | improve this question asked 4 hours ago Shadow Z. Shadow Z. 1,330 3 11 30 add a comment  |  2