-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
2,677 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,24 @@ jobs: | |
token: ${{ secrets.GH_TOKEN }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '14' | ||
node-version: '16' | ||
cache: 'npm' | ||
- name: Install Dependencies | ||
run: npm ci | ||
- name: Run Cypress | ||
uses: cypress-io/github-action@v2 | ||
with: | ||
build: npm run build | ||
start: npm start | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: screenshots | ||
path: cypress/screenshots | ||
if: failure() | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: videos | ||
path: cypress/videos | ||
- name: Semantic Release | ||
uses: cycjimmy/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,4 +91,7 @@ sw.* | |
|
||
# Service worker | ||
static/sw.js | ||
cypress/ | ||
|
||
cypress/downloads | ||
cypress/screenshots | ||
cypress/videos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { defineConfig } = require('cypress'); | ||
|
||
module.exports = defineConfig({ | ||
e2e: { | ||
// We've imported your old cypress plugins here. | ||
// You may want to clean this up later by importing these. | ||
setupNodeEvents(on, config) { | ||
return require('./cypress/plugins/index.js')(on, config); | ||
}, | ||
specPattern: 'cypress/e2e/**/*.spec.js', | ||
}, | ||
component: { | ||
setupNodeEvents(on, config) {}, | ||
specPattern: 'components/**/*.spec.js', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
globals: | ||
cy: readonly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
describe('Maps', () => { | ||
['poe', 'vallis'].forEach((ow) => { | ||
beforeEach(() => { | ||
cy.visit(`http://localhost:3000/${ow}/map`); | ||
cy.wait(1000); | ||
}); | ||
describe(`${ow} map`, () => { | ||
it('should load', () => { | ||
const map = cy.get('div.vue2leaflet-map'); | ||
map.should('exist'); | ||
cy.get('div.leaflet-control-zoom').should('exist'); | ||
cy.get('div.leaflet-control-layers').should('exist'); | ||
cy.get('div.leaflet-pane.leaflet-map-pane').should('exist'); | ||
}); | ||
}); | ||
}); | ||
}); | ||
describe('Fish', () => { | ||
['poe', 'vallis', 'deimos'].forEach((ow) => { | ||
beforeEach(() => { | ||
cy.visit(`http://localhost:3000/${ow}/fish`); | ||
cy.wait(1000); | ||
}); | ||
describe(`${ow} fish data`, () => { | ||
it('should load', () => { | ||
const table = cy.get('div.fish-info'); | ||
table.should('exist'); | ||
const rowtypes = table.find('[role=rowgroup]'); | ||
rowtypes.should('have.length', 2); | ||
const head = rowtypes.get('thead'); | ||
head.should('exist'); | ||
|
||
const rows = rowtypes.get('tbody'); | ||
rows.should('exist'); | ||
rows.children().should('have.length.gt', 10); | ||
|
||
const first = rows.children().get('tr:nth-of-type(1)'); | ||
first.should('exist'); | ||
first.children().should('have.length.gt', 13); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
describe('Synthesis', () => { | ||
beforeEach(() => { | ||
cy.visit(`http://localhost:3000/synthesis`); | ||
cy.wait(1000); | ||
}); | ||
it('should load', () => { | ||
const searchBox = cy.get('input#filterInput'); | ||
searchBox.should('exist'); | ||
searchBox.siblings('.input-group-append').find('.btn').should('have.text', 'Clear'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
describe('Timers', () => { | ||
beforeEach(() => { | ||
cy.visit('http://localhost:3000/'); | ||
cy.wait(1000); | ||
}); | ||
describe('Fissures', () => { | ||
it('should load', () => { | ||
const fissures = cy.get('div.fissures'); | ||
fissures.children().should('have.length', 2); | ||
}); | ||
}); | ||
describe('Nightwave', () => { | ||
it('should load', () => { | ||
const nightwave = cy.get('div.nightwave'); | ||
nightwave.children().should('have.length', 2); | ||
}); | ||
}); | ||
describe('Sortie', () => { | ||
it('should load', () => { | ||
const sortie = cy.get('div.sortie'); | ||
sortie.children().should('have.length', 2); | ||
}); | ||
}); | ||
describe('Bounties', () => { | ||
it('should load', () => { | ||
const bounties = cy.get('div.bounties'); | ||
bounties.should('have.length', 3); | ||
bounties.each((bountyPanel) => { | ||
expect(bountyPanel.children()).to.have.length(2); | ||
}); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const { startDevServer } = require('@cypress/webpack-dev-server'); | ||
const { getWebpackConfig } = require('nuxt'); | ||
|
||
module.exports = (on, config) => { | ||
on('dev-server:start', async (options) => { | ||
const webpackConfig = await getWebpackConfig(); | ||
return startDevServer({ | ||
options, | ||
webpackConfig, | ||
}); | ||
}); | ||
}; |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import './commands'; |
Oops, something went wrong.
cfe4479
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
warframe-hub – ./
warframe-hub-git-dev-wfcd.vercel.app
warframe-hub-wfcd.vercel.app
hub.warframestat.us