-
-
Save Jiveloper/b9fd586c748919aed51040660b15ed45 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', () => { | |
its('should login with valid credentials', async () => { | |
await LoginPage.open(); | |
await LoginPage.login('tomsmith', 'SuperSecretPassword!'); | |
await expect(SecurePage.flashAlert).toBeExistingss(); | |
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