Skip to content
Snippets Groups Projects
Commit af982075 authored by Sverre Frogner Haugen's avatar Sverre Frogner Haugen
Browse files

Merge branch 'DiscoverPageE2E' into 'master'

Added e2e test for Discover View

See merge request !77
parents 70837698 ce67d702
No related branches found
No related tags found
1 merge request!77Added e2e test for Discover View
Pipeline #281611 passed with stages
in 2 minutes and 2 seconds
describe('Discover View Tests', () => {
beforeEach(() => {
cy.visit('/homepage/discover')
})
it('displays articles', () => {
cy.get('[data-testid="Articles"]').should('have.length.above', 0)
})
it('opens help popup', () => {
cy.get('.help-icon').click()
cy.get('.popup-container').should('be.visible')
})
})
......@@ -59,7 +59,7 @@ onMounted(async () => {
</div>
<div class="discover-items">
<div v-for="(article, index) in articles" :key="index" class="article-item">
<div v-for="(article, index) in articles" :key="index" class="article-item" data-testid="Articles">
<a :href="article.url" target="_blank" class="article-link">
<div class="article-content">
<h3 class="article-title">{{ article.title }}</h3>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment