Skip to content

Instantly share code, notes, and snippets.

@Jiveloper

Jiveloper/ex.js Secret

Last active October 29, 2022 09:26
Show Gist options
  • Save Jiveloper/b9fd586c748919aed51040660b15ed45 to your computer and use it in GitHub Desktop.
Save Jiveloper/b9fd586c748919aed51040660b15ed45 to your computer and use it in GitHub Desktop.
블로깅 WDIO 구축
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