Last active
March 19, 2018 10:38
-
-
Save AlexanderMoskovkin/e0eec6ee5184d24bd3488987883d89b2 to your computer and use it in GitHub Desktop.
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
class Page1 { | |
constructor () { | |
this.input = Selector('.page1-input'); | |
} | |
} | |
class Page2 { | |
constructor () { | |
this.input = Selector('.page2-input'); | |
} | |
} | |
class Popup { | |
constructor () { | |
this.okBtn = Selector('.popup-ok-btn'); | |
} | |
} | |
const page1 = new Page1(); | |
const page2 = new Page2(); | |
const popup = new Popup(); | |
fixture `example` | |
.page `https://page1`; | |
test('test', async t => { | |
await t | |
.typeText(page1.input, 'text 1') | |
.click(popup.popupOkBtn) | |
.navigateTo('https://page2') | |
.typeText(page2.input, 'text 2') | |
.click(popup.popupOkBtn); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment