Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.applications.app1.tests;
- import com.example.applications.BaseTest;
- import org.junit.jupiter.api.Assertions;
- import org.junit.jupiter.api.Test;
- public class Application1BaseTest extends BaseTest {
- @Override
- protected String getAppUrl() {
- return "https://example.com/";
- }
- @Test
- public void checkCamURL() {
- String expectedURL = "https://example.com/";
- page.navigate(expectedURL);
- String currentURL = page.url();
- Assertions.assertEquals(expectedURL, currentURL, "URL is not as expected");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement