-
-
Save Jiveloper/694623e1331c4a4a6d391ff2f1a732ad to your computer and use it in GitHub Desktop.
블로깅 WDIO 구축
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
import LoginPage from '../pageobjects/login.page'; | |
import SecurePage from '../pageobjects/secure.page'; | |
describe('My Login application', () => { | |
it('should login with valid credentials', async () => { | |
await LoginPage.open(); | |
await LoginPage.login('tomsmith', 'SuperSecretPassword!'); | |
await expect(SecurePage.flashAlert).toBeExisting(); | |
await expect(SecurePage.flashAlert).toHaveTextContaining( | |
'You logged into a secure area!' | |
); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment