From a06031171136b440ab73b7454bbb1da68535b0b8 Mon Sep 17 00:00:00 2001 From: BryceLTaylor Date: Wed, 18 Aug 2021 10:04:28 -0400 Subject: [PATCH] Add comments to jest integration tests about users used in tests --- test/integration/footer-links.test.js | 2 ++ test/integration/homepage-rows.test.js | 2 ++ test/integration/join.test.js | 2 ++ test/integration/my-stuff.test.js | 2 ++ test/integration/navbar.test.js | 2 ++ test/integration/project-page.test.js | 4 +++- test/integration/sign-in-and-out.test.js | 2 ++ 7 files changed, 15 insertions(+), 1 deletion(-) diff --git a/test/integration/footer-links.test.js b/test/integration/footer-links.test.js index 1e2eadd2f..d6b39af3f 100644 --- a/test/integration/footer-links.test.js +++ b/test/integration/footer-links.test.js @@ -1,3 +1,5 @@ +// these tests do not sign in as a user + const SeleniumHelper = require('./selenium-helpers.js'); const { diff --git a/test/integration/homepage-rows.test.js b/test/integration/homepage-rows.test.js index a49f6b558..84bf8fc52 100644 --- a/test/integration/homepage-rows.test.js +++ b/test/integration/homepage-rows.test.js @@ -1,3 +1,5 @@ +// these tests do not sign in as a user + const SeleniumHelper = require('./selenium-helpers.js'); const { diff --git a/test/integration/join.test.js b/test/integration/join.test.js index c8cd95ea8..a08e6861d 100644 --- a/test/integration/join.test.js +++ b/test/integration/join.test.js @@ -1,3 +1,5 @@ +// these tests do not sign in as a user + const SeleniumHelper = require('./selenium-helpers.js'); const { diff --git a/test/integration/my-stuff.test.js b/test/integration/my-stuff.test.js index 5a409840f..1bc650dd1 100644 --- a/test/integration/my-stuff.test.js +++ b/test/integration/my-stuff.test.js @@ -1,3 +1,5 @@ +// These tests sign in as user #1 + const SeleniumHelper = require('./selenium-helpers.js'); const { diff --git a/test/integration/navbar.test.js b/test/integration/navbar.test.js index c26e403c8..59446de52 100644 --- a/test/integration/navbar.test.js +++ b/test/integration/navbar.test.js @@ -1,3 +1,5 @@ +// These tests do not sign in as a user + const SeleniumHelper = require('./selenium-helpers.js'); const { diff --git a/test/integration/project-page.test.js b/test/integration/project-page.test.js index 35112fa7f..ba70d9631 100644 --- a/test/integration/project-page.test.js +++ b/test/integration/project-page.test.js @@ -1,3 +1,5 @@ +// These tests do not sign in with a user + const SeleniumHelper = require('./selenium-helpers.js'); const { @@ -35,7 +37,7 @@ describe('www-integration project-page signed out', () => { afterAll(async () => await driver.quit()); // LOGGED OUT TESTS - + test('Find fullscreen button', async () => { await clickXpath('//div[starts-with(@class, "stage_green-flag-overlay")]'); await clickXpath('//img[contains(@alt, "Enter full screen mode")]'); diff --git a/test/integration/sign-in-and-out.test.js b/test/integration/sign-in-and-out.test.js index d015ab79c..c2c93027f 100644 --- a/test/integration/sign-in-and-out.test.js +++ b/test/integration/sign-in-and-out.test.js @@ -1,3 +1,5 @@ +// These tests sign in with user #0 (no number for the username) + const SeleniumHelper = require('./selenium-helpers.js'); const {