mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Rename spec and move baseUrl to config
This commit is contained in:
@@ -5,6 +5,7 @@ module.exports = defineConfig({
|
|||||||
setupNodeEvents(on, config) {
|
setupNodeEvents(on, config) {
|
||||||
// implement node event listeners here
|
// implement node event listeners here
|
||||||
},
|
},
|
||||||
|
baseUrl: 'http://localhost:5173/',
|
||||||
defaultCommandTimeout: 52000,
|
defaultCommandTimeout: 52000,
|
||||||
execTimeout: 90000,
|
execTimeout: 90000,
|
||||||
pageLoadTimeout: 140000,
|
pageLoadTimeout: 140000,
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
const baseUrl = 'http://localhost:5173/'
|
|
||||||
|
|
||||||
describe('Open each page, table view and detail view, and check at least some correct text appears', () => {
|
describe('Open each page, table view and detail view, and check at least some correct text appears', () => {
|
||||||
before('Login as admin, directs to front page', () => {
|
before('Login as admin, directs to front page', () => {
|
||||||
cy.session("logged-as-admin", () => {})
|
cy.session("logged-as-admin", () => {})
|
||||||
cy.visit(baseUrl)
|
cy.visit('')
|
||||||
cy.contains('construction')
|
cy.contains('construction')
|
||||||
cy.contains('Login').click()
|
cy.contains('Login').click()
|
||||||
cy.get('[data-cy="username-basic"]').type("testSu")
|
cy.get('[data-cy="username-basic"]').type("testSu")
|
||||||
@@ -12,7 +11,7 @@ describe('Open each page, table view and detail view, and check at least some co
|
|||||||
cy.contains('construction')
|
cy.contains('construction')
|
||||||
})
|
})
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
cy.visit(baseUrl)
|
cy.visit('')
|
||||||
})
|
})
|
||||||
it('Locality works', () => {
|
it('Locality works', () => {
|
||||||
cy.contains('Locality').click()
|
cy.contains('Locality').click()
|
||||||
Reference in New Issue
Block a user