Rename spec and move baseUrl to config

This commit is contained in:
ShootingStar91
2024-07-10 18:59:27 +03:00
parent 491ee10cb4
commit 1a834d7a4a
3 changed files with 3 additions and 3 deletions
+1
View File
@@ -5,6 +5,7 @@ module.exports = defineConfig({
setupNodeEvents(on, config) {
// implement node event listeners here
},
baseUrl: 'http://localhost:5173/',
defaultCommandTimeout: 52000,
execTimeout: 90000,
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', () => {
before('Login as admin, directs to front page', () => {
cy.session("logged-as-admin", () => {})
cy.visit(baseUrl)
cy.visit('')
cy.contains('construction')
cy.contains('Login').click()
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')
})
beforeEach(() => {
cy.visit(baseUrl)
cy.visit('')
})
it('Locality works', () => {
cy.contains('Locality').click()
View File