Skip to content

Commit

Permalink
test: try. The local test is passed, what is the problem with the onl…
Browse files Browse the repository at this point in the history
…ine test
  • Loading branch information
Linkontoask committed Dec 25, 2020
1 parent d07244b commit 044b57d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Radishes 2.0.0

![release](https://github.com/Linkontoask/radishes/workflows/release/badge.svg)

`Radishes`是这个项目的名称,它是由`萝卜`翻译而来。

项目目前还在 rfc 阶段,只有一个大致方向,具体细节可以讨论。
Expand Down
12 changes: 6 additions & 6 deletions tests/e2e/integration/news.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,16 @@ context('News Music Basic', () => {
// https://github.com/cypress-io/cypress/issues/14269
// Found it is a cache problem
// Solution: Use a timestamp to ensure that the URL cannot hit the browser cache
cy.intercept(/\/api\/song\/url/).as('getUrl')
cy.intercept(/\/api\/song\/detail/).as('getDetail')
cy.intercept(/\/api\/lyric/).as('getLyric')

cy.get(
'.toplist-expansion-contanier:first-child .none-select:first-child'
'.toplist-expansion-contanier:first-child .none-select:nth-child(2)'
).dblclick()

cy.wait(['@getUrl', '@getDetail', '@getLyric']).then(interceptions => {
cy.intercept(/\/api\/song\/url/).as('getUrl')
cy.intercept(/\/api\/song\/detail/).as('getDetail')
cy.intercept(/\/api\/lyric/).as('getLyric')

cy.wait(['@getUrl', '@getDetail', '@getLyric']).then(() => {
cy.get('source')
.invoke('attr', 'src')
.then(src => {
Expand All @@ -84,7 +85,6 @@ context('News Music Basic', () => {
})
})

// TODO
it('Singer filter', () => {
cy.visit('/music/artists')
cy.get('.artists-content ul')
Expand Down

0 comments on commit 044b57d

Please sign in to comment.