Moving to spec.js

This commit is contained in:
Jason House
2020-10-08 16:22:07 +09:00
parent e2bd3e5bb1
commit 51cdf8564b
25 changed files with 23 additions and 23 deletions
@@ -11,7 +11,7 @@
/* global cy, it, describe */
/* eslint no-undef: "error" */
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
describe('Verify About Page', () => {
it('Default page', () => {
@@ -11,7 +11,7 @@
/* global cy, it, describe */
/* eslint no-undef: "error" */
import { nuke, spyOnAddEventListener } from '../common.js';
import { nuke, spyOnAddEventListener } from '../common.spec.js';
describe('Configuration Tests', () => {
it('Clean configuration page load', () => {
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
describe('Plex Configuration Tests', () => {
before(() => {
@@ -11,7 +11,7 @@
/* global cy, it, describe, before, expect */
/* eslint no-undef: "error" */
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
describe('Schedule Configuration Tests', () => {
before(() => {
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
describe('TMDB Configuration Tests', () => {
before(() => {
@@ -11,7 +11,7 @@
/* global cy, it, describe, beforeEach, expect */
/* eslint no-undef: "error" */
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
function checkForDuplicates(ownedMovies, recommendedMovies) {
cy.log(`recommendedMovies.length: ${recommendedMovies.length}`);
@@ -11,7 +11,7 @@
/* global cy, it, expect, describe, before, beforeEach */
/* eslint no-undef: "error" */
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
function searchSawLibrary(cy) {
cy.visit('/libraries', { onBeforeLoad: spyOnAddEventListener });
@@ -11,7 +11,7 @@
/* global cy, it, before, describe */
/* eslint no-undef: "error" */
import { redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
describe('Not Searched Yet Library', () => {
before(redLibraryBefore);
@@ -11,7 +11,7 @@
/* global cy, it, expect, before, describe */
/* eslint no-undef: "error" */
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
describe('Find owned movies', () => {
before(nuke);
@@ -11,7 +11,7 @@
/* global cy, it, describe */
/* eslint no-undef: "error" */
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
describe('Verify Log In Page', () => {
it('Default page', () => {
@@ -11,7 +11,7 @@
/* global cy, it, describe */
/* eslint no-undef: "error" */
import { spyOnAddEventListener } from '../common.js';
import { spyOnAddEventListener } from '../common.spec.js';
function checkNavIcons(cy, isLibDefault = true, isMissingDefault = true, isRssDefault = true, isSettingsDefault = true, isUpdatesDefault = true, isAboutDefault = true) {
cy.get(':nth-child(1) > .nav-link > .icon')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(discordWebHookUrl, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#discordWebHookUrl')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(username, password, mailTo, mailFrom, mailServer, mailPort, mailTransportProtocol, mailSmtpAuth, mailSmtpTlsEnabled, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#emailUsername')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(address, token, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#gotifyAddress')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(channelTag, token, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#pushBulletChannelTag')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(token, user, priority, sound, retry, expire, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#pushOverToken')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(slackWebHookUrl, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#slackWebHookUrl')
@@ -12,7 +12,7 @@
/* eslint no-undef: "error" */
import faker from 'faker';
import { CYPRESS_VALUES, nuke } from '../common.js';
import { CYPRESS_VALUES, nuke } from '../common.spec.js';
function checkElements(botId, chatId, tmdbApi, plexServer, plexMetadata, plexLibrary, gapsCollections, enabled) {
cy.get('#telegramBotId')
@@ -11,7 +11,7 @@
/* global cy, describe, it, expect */
/* eslint no-undef: "error" */
import { redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
function searchSawLibrary(cy) {
cy.visit('/libraries', { onBeforeLoad: spyOnAddEventListener });
@@ -11,7 +11,7 @@
/* global cy, describe, it, before */
/* eslint no-undef: "error" */
import { redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
describe('Not Searched Yet Recommended', () => {
before(redLibraryBefore);
@@ -11,7 +11,7 @@
/* global cy, describe, it, beforeEach */
/* eslint no-undef: "error" */
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { nuke, redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
function searchSawLibrary(cy) {
cy.visit('/libraries', { onBeforeLoad: spyOnAddEventListener });
@@ -11,7 +11,7 @@
/* global cy, describe, it, before */
/* eslint no-undef: "error" */
import { nuke, spyOnAddEventListener } from '../common.js';
import { nuke, spyOnAddEventListener } from '../common.spec.js';
describe('Not Searched Yet RSS', () => {
before(nuke);
@@ -11,7 +11,7 @@
/* global cy, describe, it, before, expect */
/* eslint no-undef: "error" */
import { redLibraryBefore, spyOnAddEventListener } from '../common.js';
import { redLibraryBefore, spyOnAddEventListener } from '../common.spec.js';
function searchSawLibrary(cy) {
cy.visit('/libraries', { onBeforeLoad: spyOnAddEventListener });