Skip to content

Commit

Permalink
Test example.com
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-PH committed Jan 28, 2024
1 parent eb4181a commit cff31b3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/e2e/seleniumTests.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ describe('Selenium UI Tests', () => {
let driverUtils = null;

const googleURL = 'http://www.google.com';
const natGeoURL = 'https://www.nationalgeographic.com/';
const exampleURL = 'https://www.example.com';
// const natGeoURL = 'https://www.nationalgeographic.com/';

const createNewDriver = async () => {
const extensionPath = process.env.EXTENSION_PATH || './dist/dev';
Expand Down Expand Up @@ -110,7 +111,7 @@ describe('Selenium UI Tests', () => {
const signature1 = { title: 'Title1', favicon: '😀' };
await driverUtils.setSignature(signature1.title, signature1.favicon);

await driverUtils.openTabToURL(natGeoURL);
await driverUtils.openTabToURL(exampleURL);

const signature2 = { title: 'Title2', favicon: '🌟' };
await driverUtils.setSignature(signature2.title, signature2.favicon);
Expand All @@ -125,7 +126,7 @@ describe('Selenium UI Tests', () => {
expect(await driverUtils.getTitle()).toBe(signature1.title);
await driverUtils.assertEmojiSetAsFavicon();

await driverUtils.openTabToURL(natGeoURL);
await driverUtils.openTabToURL(exampleURL);
expect(await driverUtils.getTitle()).toBe(signature2.title);
await driverUtils.assertEmojiSetAsFavicon();

Expand Down

0 comments on commit cff31b3

Please sign in to comment.