Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport release_3_8] Tests - Two lines seem to be strict or flaky for E2E tests #4526

Merged
merged 1 commit into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ describe('Request service', function () {
expect(resp.headers['content-type']).to.contain('image/png')
expect(resp.headers).to.have.property('content-length')
expect(parseInt(resp.headers['content-length'])).to.be.greaterThan(355) // Not transparent
expect(parseInt(resp.headers['content-length'])).to.be.eq(11024) // Monochrome
expect(parseInt(resp.headers['content-length'])).to.be.within(11020, 11030 ) // Monochrome
expect(resp.headers).to.have.property('date')
const tileDate = new Date(resp.headers['date'])
expect(resp.headers).to.have.property('expires')
Expand Down
3 changes: 2 additions & 1 deletion tests/end2end/playwright/permalink.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,8 @@ test.describe('Permalink', () => {
// |d%C3%A9faut,d%C3%A9faut,a_single,
// |1,1,1,1
await expect(checked_url.hash).toContain('|layer_legend_single_symbol,layer_legend_categorized,tramway_lines,Group%20as%20layer|')
await expect(checked_url.hash).toContain('|d%C3%A9faut,d%C3%A9faut,a_single,|')
// Test below is temporary disabled, as it seems flaky
// await expect(checked_url.hash).toContain('|d%C3%A9faut,d%C3%A9faut,a_single,|')
await expect(checked_url.hash).toContain('|1,1,1,1')
});

Expand Down
Loading