Big bang/webgune berria (#18)
* chore: netlify deployments plugina kentzen du * chore: Strapi berria instalatzen du * feat: astro instalatzen du * chore: cypress instalatzen du * feat: back eta front konektatzen ditu * feat: server side rendering egiten du * chore: Strapin enterprise edition flagak kentzen ditu * feat: euskara sartzen du * chore: Strapi bertsioa igotzen du * feat: preview modua sortzen du ingurune bariableen bidez * aurreko commitarekin doa * fix: cypress konpontzen du * chore: Strapi bertsioa igotzen du * feat: ekintza back-ean sortzen du * feat: zikloa eta erakundea sortzen ditu * feat: erakundeen kudeaketa hobetzen du * chore: pnpm erabiltzen du * feat: Strapi bertsioa igotzen du * ekintza sortzen du eta zerbitzuak eguneratzen ditu * chore: graphql erabiltzen du populazioa ekiditeko * chore: collection erabiltzen du ekintzetarako * chore: bertsioak igotzen ditu * chore: Astro bertsioa igotzen du * chore: Strapi bertsioa igotzen du * feat: home-a hasten du * feat: zig zag separadorea sortzen du * feat: zig zaga doitzen du * feat: heroa doitzen du * feat: agenda sortzen du * feat: agenda eta izan labazkide atalak konektatzen ditu * feat: home-aren edukia sortzen du * chore: app.js sartzen du WTF * feat: header-a sortzen du * feat: card-a hobetzen du * feat: footer-a sortzen du * feat: ekintzen zerrenda erakusten du * feat: zikloaren bista sortzen du * fix: header-aren estekak konpontzen ditu * chore: remove unused code * chore: components directorioa kentzen du * chore: typescript konfigurazioa hobetzen du * chore: views path-a sortzen du * feat: zikloaren deskribapena erakusten du * feat: ekintzaren bista sortzen du * feat: zig zag marra erakusten du * ignore: comment * feat: hitzordua erakusten du * feat: zikloa erakusten du * feat: Waveko erroreak errepasatzen ditu * feat: Wave birpasatzen du * feat: zerrendan irudia erakusten du * feat: karga optimizatzen du * feat: irudien formatuak kontuan hartzen ditu * feat: zikloan ekintza irudiak erakusten ditu * feat: ekintza zerrenda atontzen du * feat: header-eko estekak markatzen ditu * feat: irudi estela erakusten du * feat: responsive-a hobetzen du * feat: orri basikoa sortzen du * feat: hasiera responsive egiten du * feat: overflow konpontzen du * feat: bug-a uzten du LOL * feat: irudi estela mugikorrean aktibatzen du * feat: orri basikoa eta ekintza mugikorrean jartzen ditu * feat: mugikor menua sortzen du * feat: mugikor menua amaitzen du * feat: build estatikoa sortzen du * feat: sitemap-a sortzen du * feat: rss feed-a sortzen du * chore: ingurune aldagaiak sortzen ditu * chore: public-proxy komandoa sortzen du * feat: irudiak webp formatuan jartzen ditu * fix: irudiak erakusten ditu ekintzen zerrendan * feat: ekintza zerrendaren irudia animatzen du * refactor: extract functions * fix: animazioa konpontzen du * feat: irudi estela hobetzen du * chore: prerender aldagaiak kentzen ditu * chore: SASS warning-ak kentzen ditu * feat: ziklo eta ekintzetan H1 ezartzen du * feat: slideshow-a sortzen du * feat: ekintzak hitzorduan oinarrituta filtratzen ditu * feat: hitzorduen arabera filtratzen du eta moment kentzen du * feat: titulua aldatzen du * feat: menua eguneratzen du * feat: parte hartun deskribapena sortzen du * feat: Cloudinary konfiguratzen du * fix: cloudinary konfigurazioa konpontzen du * feat: erositako fonteak jartzen ditu
This commit is contained in:
1
e2e/.gitignore
vendored
1
e2e/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
artifacts
|
||||
9
e2e/cypress.config.ts
Normal file
9
e2e/cypress.config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { defineConfig } from "cypress";
|
||||
|
||||
export default defineConfig({
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {
|
||||
// implement node event listeners here
|
||||
},
|
||||
},
|
||||
});
|
||||
@@ -1,11 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:8000",
|
||||
"defaultCommandTimeout": 15000,
|
||||
"videosFolder": "artifacts/videos",
|
||||
"screenshotsFolder": "artifacts/screenshots",
|
||||
"downloadsFolder": "artifacts/downloads",
|
||||
"testFiles": "**/*.spec.ts",
|
||||
"video": false,
|
||||
"chromeWebSecurity": false,
|
||||
"viewportWidth": 1200
|
||||
}
|
||||
5
e2e/cypress/fixtures/example.json
Normal file
5
e2e/cypress/fixtures/example.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"name": "Using fixtures to represent data",
|
||||
"email": "hello@cypress.io",
|
||||
"body": "Fixtures are a great way to mock data for responses to routes"
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
describe("Hasiera", () => {
|
||||
it("hasiera orria erakusten du", () => {
|
||||
visitHasiera();
|
||||
|
||||
cy.findByRole("heading", { name: /laba gara/i });
|
||||
});
|
||||
|
||||
it("Twitter-era bideratzen du", () => {
|
||||
interceptExternalPageLoad("https://twitter.com/labasarea/");
|
||||
|
||||
visitHasiera();
|
||||
cy.findByRole("link", { name: /laba twitterren/i }).click();
|
||||
|
||||
cy.url().should("eq", "https://twitter.com/labasarea/");
|
||||
});
|
||||
|
||||
it("Instagram-era bideratzen du", () => {
|
||||
interceptExternalPageLoad("https://www.instagram.com/labasarea/");
|
||||
|
||||
visitHasiera();
|
||||
cy.findByRole("link", { name: /laba instagramen/i }).click();
|
||||
|
||||
cy.url().should("eq", "https://www.instagram.com/labasarea/");
|
||||
});
|
||||
|
||||
it("kafetegira bideratzen du", () => {
|
||||
visitHasiera();
|
||||
cy.findByRole("link", { name: /dastatu laba/i }).click();
|
||||
|
||||
cy.location("pathname").should("include", "/kafetegia");
|
||||
});
|
||||
});
|
||||
|
||||
function interceptExternalPageLoad(url: string) {
|
||||
cy.intercept(url, {
|
||||
statusCode: 200,
|
||||
body: "<h1>Kanpoko web orria</h1>",
|
||||
});
|
||||
}
|
||||
|
||||
function visitHasiera() {
|
||||
cy.visit("/");
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
describe("Kafetegia", () => {
|
||||
it("kafetegiko orria erakusten du", () => {
|
||||
cy.visit("/kafetegia");
|
||||
|
||||
cy.findByRole("heading", { name: /dastatu laba/i });
|
||||
});
|
||||
});
|
||||
@@ -1,22 +0,0 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************************
|
||||
// This example plugins/index.js can be used to load plugins
|
||||
//
|
||||
// You can change the location of this file or turn off loading
|
||||
// the plugins file with the 'pluginsFile' configuration option.
|
||||
//
|
||||
// You can read more here:
|
||||
// https://on.cypress.io/plugins-guide
|
||||
// ***********************************************************
|
||||
|
||||
// This function is called when a project is opened or re-opened (e.g. due to
|
||||
// the project's config changing)
|
||||
|
||||
/**
|
||||
* @type {Cypress.PluginConfig}
|
||||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
module.exports = (on, config) => {
|
||||
// `on` is used to hook into various events Cypress emits
|
||||
// `config` is the resolved Cypress config
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
/// <reference types="cypress" />
|
||||
// ***********************************************
|
||||
// This example commands.js shows you how to
|
||||
// This example commands.ts shows you how to
|
||||
// create various custom commands and overwrite
|
||||
// existing commands.
|
||||
//
|
||||
@@ -23,4 +24,14 @@
|
||||
//
|
||||
// -- This will overwrite an existing command --
|
||||
// Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
|
||||
import "@testing-library/cypress/add-commands";
|
||||
//
|
||||
// declare global {
|
||||
// namespace Cypress {
|
||||
// interface Chainable {
|
||||
// login(email: string, password: string): Chainable<void>
|
||||
// drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
||||
// dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
|
||||
// visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
@@ -1,5 +1,5 @@
|
||||
// ***********************************************************
|
||||
// This example support/index.js is processed and
|
||||
// This example support/e2e.ts is processed and
|
||||
// loaded automatically before your test files.
|
||||
//
|
||||
// This is a great place to put global configuration and
|
||||
@@ -14,7 +14,4 @@
|
||||
// ***********************************************************
|
||||
|
||||
// Import commands.js using ES2015 syntax:
|
||||
import './commands'
|
||||
|
||||
// Alternatively you can use CommonJS syntax:
|
||||
// require('./commands')
|
||||
import './commands'
|
||||
@@ -1,16 +1,18 @@
|
||||
{
|
||||
"name": "e2e",
|
||||
"version": "1.0.0",
|
||||
"description": "Laba webgunerako E2E testak",
|
||||
"private": true,
|
||||
"description": "E2E testak Laba Webgunea proiekturako",
|
||||
"scripts": {
|
||||
"test": "cypress open"
|
||||
"test": "test",
|
||||
"open": "cypress open"
|
||||
},
|
||||
"author": "Laba Sarea",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"cypress": "^14.3.1",
|
||||
"pump": "^3.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@testing-library/cypress": "^8.0.2",
|
||||
"cypress": "^9.2.1",
|
||||
"typescript": "^4.5.4"
|
||||
"typescript": "^5.3.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"types": ["cypress", "@testing-library/cypress"]
|
||||
}
|
||||
"target": "es5",
|
||||
"lib": ["es5", "dom"],
|
||||
"sourceMap": true,
|
||||
"types": ["cypress", "node"]
|
||||
},
|
||||
"include": ["**/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user